Small Fix for Patterns substitutions

It's now possible define patterns with repeated chars, such as '___'. Plus, the small-delete `"-` buffer doesn't change anymore (that was quite bothersome!)
Merge pull request #1 from Iazel/patch-1

Small Fix for Patterns substitutions