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