RTrim
The RTrim function returns a copy of a string with no trailing spaces.
Syntax
variable = RTrim ( source )
Remarks
The source parameter is the string that should be stripped of trailing spaces.
To trim leading spaces only, use LTrim. To trim both leading and trailing spaces, use Trim.