結果 : how to check for duplicate characters in a string python