VBScript » Functions » Trim

Syntax:
Trim(String)

The Trim function removes extra blank spaces on both the right and left side of a string.

Examples

Code:
<%sentence="start" & Trim("   How now brown cow?   ") & "end" %>
Output:
startHow now brown cow?end
Explanation:

In this example, note that the extra white spaces are removed from both sides.

Language(s): VBScript

See Also: