Removing whitespace from end of lines