trim trailing whitespace in fields