Update README.md

Adding an example of how to use a function as a replacement pattern.