trim$()

Trim string. Return string without right and left spaces. You can omit the dollar character so you can alternatively write it as trim() .

Syntax:
string = trim$( string )
string = trim( string )

Example:
a$ = " test string "
b$= trim( a$ )
print a$ & "|---"
print b$ & "|---"

See also ltrim$() and rTrim$() commands.