vbscript Trim
' The Trim function removes spaces on both sides of a string.
name=" Steve "
response.write("Hello" & Trim(name) & "and welcome.")
' Output: HelloSteveand welcome.
' There are also LTrim and RTrim for right or left removal of spaces.
response.write("Hello" & LTrim(fname) & "and welcome. <br>")
response.write("Hello" & RTrim(fname) & "and welcome.")
' Output: HelloSteve and welcome.
' Hello Steveand welcome.