remove whitespace at end of lines