Fixed Crashing

Fixed crashing when ) was used as the argument for the argument for the pattern.
Merge pull request #2 from techno156/patch-3

Fixed Crashing