結果 : check for duplicate letters in string python