These VB.NET examples use the Trim Function. Trim removes leading and trailing whitespace.
www.dotnetperls.com