for(int iChar = 1; iChar < sTime.Length; iChar++) { sChar = sTime.Substring(iChar - 1, 1); byte ascVal = System.Convert.ToByte(sChar); // Allowable values are 0-9,';','A','M','P' if ((iValue >= 48 && iValue <= 57) || iValue == 58 || iValue == 59 || iValue == 77 || iValue == 80) { } else bValid = false; }>>I am extracting characters from a string.