ASP Trim Function
The ASP Trim() function is used to remove leading and trailing spaces from a string or the contents of a variable.
Trim Function Arguments
Text to be revised
ASP Coding for Trim Function
<%
sTxtString = " How is John? "
sTxtString
= trim(sTxtString)
Response.Write sTxtString
%>
OR
<%
Response.Write trim(" How is John? ")
%>
Result
How is John?