fix trailing spaces