Update readme.md

Added example code and description for using the replaceTextHandler function.