Are you trying to change the string using mid? The code below will tell you what character in at the location found by mid.
do
a$="12345"
if mid(a$,2,1)="2"
end
else
Print("Not Now")
endif
if GetRawKeyPressed(32)
end
endif
sync()
loop
Otherwise you might want to look at ReplaceString.