remove whitespace before end of class