Allow replace pattern with empty string,
expression if (opts.replace) is false for empty string

Add test

fix the indentation
Merge pull request #2 from codio/390_allow_replace_to_empty_string

Allow replace pattern with empty string