strWithObj support added.

Added support for key:value objects as replacement rules.

Example:
```
var replacements = {
  'A': 'AAA',
  'B': 'BBB'
};
```