System Namespace String Class
Removes all occurrences of a set of specified characters from the beginning
and end of this instance.
1. Removes all occurrences of white space characters from the beginning and end of this instance.
2. Removes all occurrences of a set of characters specified in a Unicode character array from the beginning and end of this instance.
String Members TrimEnd TrimStart