TrimRight
Trims trailing spaces and control characters from a string