She asks: Which function would enable you to eliminate those extra spaces? You respond: To eliminate extra spaces for consistency, use the TRIM function.

Correct
To eliminate extra spaces for consistency, use the TRIM function.