add `replace` option

I added `replace` option to satisfy an usecase which I added on README.md.