Removes unwanted Characters from a String
The Clean Text action removes unwanted characters from a given string, trims whitespace, and optionally eliminates control characters. It’s ideal for sanitizing input before further processing.

String to Clean
The original text that you want to clean. This is the only required field.
Characters to Remove (Optional)
A string of individual characters that you want to remove from the text.
Example:
To remove punctuation: .,!?
To remove quotes: "'
Leave blank to skip.
Trim String (Optional)
Removes leading and trailing spaces, tabs, and line breaks from the input.
Remove Control Characters (Optional)
- No – Leaves all control characters intact (default).
- Yes – Removes all control characters — including
\n,\r,\t, etc. - Retain New Lines – Removes control characters except newlines (
\n), preserving formatting.
Parameters
| Parameter | Type | Required |
| String to Clean | String | Yes |
| Characters to Remove | String | No |
| Trim String | Choice | Yes |
| Remove Control Characters | Choice | Yes |
