Primitive version of repeated letters replacement works. However, for a word like 'peopple', the first 'p' will get replaced, need to fix that.