public static string GetSafeScopeName(this string value) { if (value == null) { return "null"; } return value.ToLower(); } }