trimEnd

Removes trailing whitespace.