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 parameters | Input parameter type | Description |
|---|---|---|
| Source Text | any | Content to trim. Lists are joined with newline characters; other values are converted to strings |
| Deletion Method | enum | Left, Right, Both |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| Deletion Result | str | Trimmed 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.