How to Remove Spaces from the Start and End of a String with Trim in C#
Text that people type often has spaces they didn't mean to type, at its start or its end. Trim removes them, together with tabs and line breaks, and leaves the text in between alone.
