xcall STRIP, strvar
STRIP.SBR removes trailing blanks from the specified string. Note that it does not remove Tabs or any other control characters, just spaces, and just those that are at the trailing end.
Also see TRIM, which trims both leading and trailing spaces, and has an option to remove unprintable characters as well.