public static bool IsEmptyOrWhitespace(this string str) { return string.IsNullOrEmpty(str) || string.IsNullOrWhiteSpace(str); } }