private string StripNonDigit(string input) { string retval = string.Empty; foreach (char c in input) { if (c >= 0x30 && c <= 0x39) retval += c; } return retval; }