replaceAll function

Replace all occurrences in object.