Trim all right whitespace from strings

Added GetInfo test.