1234
for (int i = 0 ; i < the_string.length() - 2; i=i+2) { // do something with index 0 and 2 and 4 and 6 and ... }