Trim String

Use the Trim String activity to trim characters from the content in a string.

The behavior of this activity is constrained by the String Trimming properties.

You can manually enter the Source String and Characters to Trim values or use variables such as output from other workflow activities, sub-workflows, or atomic actions that occur earlier in the workflow.

This activity will complete successfully as long as the Source String and Characters to Trim inputs are valid, even if no match is found in the Source String.

Note: If you press Enter after the end of the Source String, Automation will treat this as a trailing space.

Usage

Complete the following properties to use this activity:

  • String Trimming - Enter the following information:
    • Source String - Enter the source string or click the Variable Reference icon to choose a variable.
    • Characters to Trim - Enter characters to be trimmed or click the Variable Reference icon to choose a variable.
    • Trim Leading Characters - Enter true or false, or click the Variable Reference icon to choose a Boolean variable.
    • Trim Trailing Characters - Enter true or false, or click the Variable Reference icon to choose a Boolean variable.

The output of this activity will be located in the Trimmed Output field in the activity properties.