Fixed a multiple replacement that happens when the source pattern is contained into the replacement pattern.