Trim
Last updated
Was this helpful?
Last updated
Was this helpful?
The Trim action in Avo Assure, found under @Generic Element, helps remove any extra spaces before or after the input text and stores the result in a dynamic variable.
Syntax
Input Value: <input string>
<input string> (Required)
It is a set of text or characters used in the input value field
Output Value
<Dynamic Variable> (Required)
This variable stores the trimmed string
<Dynamic Variable> (Optional)
This variable stores the 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
Text Strings
" Automation "
Automation
Numeric Strings
" 123456 "
123456
Special Character
" abc@domain.com "
abc@domain.com
Alphanumeric strings
" ID2025 ''
ID2025