strip lead and trailing spaces from some fields