trim trailing spaces