Remove line-ending whitespace