Works partially. There is an error when any character repeats more than once and is part of the compared string. The function needs to move down to the next occurence to see but isn't currently programmed to do that.