Allow for empty replacement strings

The current check on the replacement property doesn't allow for empty strings, which is useful if you just want to remove some text out of files.