= string.byte(str0, index) local index_2a = (index + 1) while (i < j) do.

You really want a global", "moving this code to somewhere that %s is in.