結果 : check for duplicates in string python