TRIM The TRIM function removes unnecessary spaces in a string. Use it together with the PROPER function to clean your data.