removing trailing spaces