結果 : check for repeating characters in string python