Added replaceStrWith function