Replaced regex with char.IsDigit.