Added duplicate character checker