trailing spaces removal