public static bool ToBool(this string str, bool defVal = false) { return str.ToLowerInvariant().EqualsToAny("true", "1"); }