Strip characters from the left, right or both ends of a string.
string$ = TRIM$(string$ [, mask$ [, where$]])
mask$ - characters to remove (default a space) where$ - “L”, “R” or “B” for left, right or both (default “B”)
Example:
PRINT "[" + TRIM$(" hi ") + "]"
Source: docs/help/trim-dollar.txt inmmcore. On the computer, typeHELP TRIM$.