TinkerCad doing something different ? That is nuts.
I tried the sketch in the Wokwi simulation, and it works just like the real board.
@newbie_e Could you show a full (short) sketch the next time ?. Now we have to log in at Tinkercad to see the sketch.
Using many String objects with a Arduino Uno might cause the heap to keep growing. We try to avoid the String class with a Arduino Uno.
Could you get used to a indent of 2 spaces instead of 4 in the source code ? Arduino uses default two spaces, and I learned to like it.
A ' [EDIT] It is okay as Danois90 writes belowmyString[i]' is a element in a array of String objects. But you don't have an array of String objects, you have just one object.
I have made a comparison between Tinkercad and Wokwi: Virtual Online Arduino and ESP32 Simulator - Wokwi Arduino Simulator features - #3 by Koepel
I will add the bug that you found, thank you.