magritton
5/17/2014 - 2:58 AM

Trim return, newline, and space from the start and end of a string

Trim return, newline, and space from the start and end of a string

mystring.TrimEnd('\r', '\n', ' ').TrimStart('\r', '\n', ' ');