I want to transform my text from time to time after generating AI output or when I receive input. E.g. search and replace newline characters or other characters. changing string to case. splitting string by ...