StrTrim
- trim whitespaces from the string

String manipulation
(AFL 3.90)


SYNTAX StrTrim( "string", "targets", side = 3 )
RETURNS STRING
FUNCTION The function trims extra characters (specified in "targets") from either left (1), right(2) or both(3) sides of the string. If "targets" parameter is an empty string, then function trims whitespaces (i.e. space, tab, newline)
EXAMPLE EnableTextOutput( 0 );

str =
"== ==string with extra chars== ==";

printf( "Before trim: '" + str + "'\n" );

str =
StrTrim( str, " =" );

printf( "After trim: '" + str + "'" );
SEE ALSO

References:

The StrTrim function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference