replace `string.sub(i,i)` with `\"const char*\"[i]`.