結果 : check duplicate characters in string python