The Trim Text action is used to trim characters from the beginning or the end of a specified block of text, and to place the result in a variable. The variable must be created in an earlier step using the Create Variable action.
From the Task Builder Available Actions pane, open the Text folder and double-click the Trim Text action or drag it into the Steps pane.
In the Text to remove from box, enter the target text to be trimmed. To enter a variable or dataset, click the Insert Expression/Variable button and use the Expression Builder to insert it.
In the Remove from box, select beginning and end, beginning, or from end.
In the Remove box, select the type of characters to remove. To remove text, select User defined and then enter the text in the Characters to remove box. To enter a variable or expression, click inside the Characters to remove box and then click the Insert Expression/Variable button and use the Expression Builder to insert it.
In the Populate variable with result box, select the variable to populate.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
Trim Text Action