Remove spaces at start and end of text field values.