Added example with replace string

* issue here is that one new object will be created
* replace method for strings in python returns a copy of the string on
which the method is called