remove whitespace at end of rows