Why i can't see any difference between the bug and your correction? Why i can see italics again?
This is getting really scary...
Sorry after realizing what it was wrong with code I decided remove message due it violate rules.
Again italic come from the code of poster.
This forum has no preview mode and posted text was the only help discovering what was wrong on original code. str-'0' extract one character by using i as index, square braces used for array indexing where interpreted as
italic command.
Original poster problem remain unaddressed but answer where more confusing than original post.
Code has nothing wrong in it than how is there due to "["i"]" translation to italic.
Sometimes explain how to use "code tags" is better than just do confuse more who is reading about.
As I wrote on erased message:
Newbie forever discover hidden feature of environment.