Fixed issue where trimming fields didn't work in one case.