Handle text matching when text position changed in paragraph