eliminate resulting extra spaces in class attrs