strWithObj support added.

Added support for key:value objects as replacement rules.

Example:
```
var replacements = {
  'A': 'AAA',
  'B': 'BBB'
};
```
Added unit test for object of replacement patterns
Merge pull request #3 from vovayatsyuk/patch-1

strWithObj support added.