added function replaceAll
Merge pull request #3 from gtnx/master

added function replaceAll