結果 : find index of repeated element in string python