new len = strlen(mystring); for (new i = 0; i <= len; i++) { if (mystring[i] /* your conditions */) { // your adjustments } }