結果 : check for duplicate characters in a string python