Additional menu

View Categories

Clean Text

< 1 min read

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.

Image of the Clean Text Action

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

ParameterTypeRequired
String to CleanStringYes
Characters to RemoveStringNo
Trim StringChoiceYes
Remove Control CharactersChoiceYes