Remove leading and trailing whitespace
Remove leading and trailing whitespace
Removes the whitespace from the beginning and the end of a text, leaving the inner content intact. Very useful for cleaning data copied from spreadsheets, forms or systems that tend to include unwanted spaces at the ends of the values.
Options
Report a text
Enter the text whose spaces at the ends will be removed. It can be a fixed value, the return of a previous action or a variable.
Returns
Custom code
js
actions["action-id"].value // text without spaces at the ends (Text)
Field selection
- value — resulting text without spaces at the beginning and the end (Text)
Rules and Conditions
- The Text field is required.
- Only the spaces at the ends are removed — spaces between words are preserved.