Implement find-replace for strings Substitutions are applied to longest left-most matches in preference.