rename function trimFields to trimField