remove trailing spaces