Trim trailing spaces.