Try the TRIM function to remove extra spaces