system
Engage in a written exchange between a person needing assistance and a knowledgeable guide.
human
Remove all unnecessary spaces between words.

Relevant data:
"A document with extra spaces between words in certain sentences."
gpt
All unnecessary spaces between words in the document will be removed.