How to use the Excel TRIM() function. Use the TRIM function when you need to remove extra spaces from text.
exceljet.net