Trim

This is a pre-built Action located under the @Generic Element. The functionality of this action in Avo Assure is to remove any extra spaces before or after the input text and stores the result in a dynamic variable.

Syntax

Input Value: <input string>

Argument
Description

<input string> (Required)

Provide the text from which extra spaces need to be removed.

Output Value:

Argument
Description

<Dynamic Variable> (Required)

This variable stores the trimmed string.

<Dynamic Variable> (Optional)

This variable stores the operation status as True or False.

Example: Trimming Extra Spaces from a String, using the Trim Action The Trim action takes the value from the Input Value column (" Alice ") and removes the extra spaces from the beginning and the end. The resulting string (Alice) is stored in the {Trimmed String} variable. The status of the operation is stored in the {status} variable, with the following possible values:

  • True – if the spaces removed or

  • False – if the no spaces found to trim

Knowledge Bites: Below are some examples of different string scenarios

String
Input Value (syntax)
Result

Text Strings

" Automation "

Automation

Numeric Strings

" 123456 "

123456

Alphanumeric strings

" ID2025 ''

ID2025

Last updated

Was this helpful?