Remove leading and trailing spaces from fields

Ticket:	#3252