internal static bool IsValidPart(string s, bool allowLeadingZeros) { return IsValidPart(s.ToCharArray(), allowLeadingZeros); }