Hi,

You're string doesn't overflow it's you're counter witch is declared as Integer!

Integer can hold: -32.768 to 32.767

So use Long type instead!
Long can hold: -2.147.483.648 to 2.147.483.647

Enjoy!