Clean and transform strings with .trim(), .replace(), and .replaceAll().
.trim() on messy to remove leading/trailing whitespace → cleaned.replace() on cleaned to replace the first 'error' with 'success' → fixed.replaceAll() on text to replace all 'old' with 'new' → updatedSubmit your code to see test results