// An easier way to extract each character would be: string s = "abcde"; for (int i=0; i= '0') { return true; }