結果 : check duplicate in string python