FUNCTION:  RTrim( )

RTrim(String)
 
The RTrim function removes extra blank spaces only on the right side of a string.
 
Note that HTML automatically removes extra blank spaces in this view.
 
Code:
<% =RTrim("   A sentence with extra spaces on both sides.    ") %>
 
Output:
A sentence with extra spaces on both sides.