Remove whitespace at the end of a line