RTRIM

Removes spaces from the right hand side of a string.

Syntax

string RTRIM(string value)

Example

RTRIM("This has four spaces after the text    .")

Will return "This has four spaces after the text."