U4-2635 Skip past replaced word when checking

Avoids infinite loop if search and replacement are equal