Rtrim (VBScript)

The Rtrim command returns inStr with all trailing spaces removed.

Syntax

RTRIM ( inStr )