delete trailing spaces