Skip to main content

Trim Text

Command description

Removes spaces, newlines, carriage returns, and tabs from the left end, right end, or both ends of text, then saves the result as a new text variable.

Command Input Parameters

input parametersInput parameter typeDescription
Source TextanyContent to trim. Lists are joined with newline characters; other values are converted to strings
Deletion MethodenumLeft, Right, Both

Command Output Parameters

Output parametersOutput parameter typeDescription
Deletion ResultstrTrimmed text

Note

This command removes whitespace only from the selected edge or edges. To remove whitespace inside the text, use Replace Text.

AI Workflow Generation Notes

  • The command does not remove whitespace from the middle of the text.