結果 : check string for repeated characters python