Some minor tweaks to using findAndReplaceDOMText.