[TextEditor] Implemented faster replace all approach.