clean trailing spaces