Trim trailing spaces