i made a test to see how fast "foreach" works compared to "For...next" in conjunction with strings. The attached app removes char by char all leading zeros from a string.
the initial string is:
c1:= replicate ( "0" , 4500000 ) + "500205"
ok, not a real world string size , but it´s almost impossible to detect the elapsed time without using such a big number. Overall the performance of the good old "for...next" isn´t that bad - if Substr2()/Substr3() is used instead of Substr().