remove whitespace at end of line