Replaces each stretch of a text with what its span writes.
The text the spans were found in.
The stretches to replace, in any order.
The text with every stretch replaced.
Replaces each stretch of a text with what its span writes.