The example shows you how to replace text with an AttributedText span, which carries its own style. The text before and after the replaced text stays in its original spans and keeps its formatting.
Name* Email* Message*