Fixed wrong examples for Set and Replace

Fixed wrong order of params in set and replace function examples.
Fixed typo in replace function example.