Removing trailing spaces