結果 : find repeating patterns in string python