implement function 'replace'
Merge pull request #33 from tleilax/develop

Implement function 'replace'
Fixed #35