Add replace-pattern command

And make replace just use plain strings