Trim is a commonly used ASP function that allows you to quickly remove any extra spaces at the beginning or ending of a string.
www.aspisfun.com