あーそれは思った。len(hoge)ってvbsかよwって。
for i in range(1, len(hoge) - 1) :とかも萎えたな。