Trailing whitespace removal