Strip characters from the right of a string.
string$ = RTRIM$(string$ [, mask$])
mask$ - characters to remove (default a space)
Example:
PRINT "[" + RTRIM$("hi ") + "]"
Source: docs/help/rtrim-dollar.txt inmmcore. On the computer, typeHELP RTRIM$.