diff --git a/ICD.Common.Utils/StringUtils.cs b/ICD.Common.Utils/StringUtils.cs
index 5743312..8d8c0c8 100644
--- a/ICD.Common.Utils/StringUtils.cs
+++ b/ICD.Common.Utils/StringUtils.cs
@@ -475,6 +475,21 @@ namespace ICD.Common.Utils
return text == null ? null : new string(text.Where(c => !Char.IsWhiteSpace(c)).ToArray());
}
+ ///
+ /// Returns true if the string is entirely whitespace characters, or empty, or null.
+ ///
+ ///
+ ///
+ public static bool IsNullOrWhitespace(string text)
+ {
+ if (string.IsNullOrEmpty(text))
+ {
+ return true;
+ }
+ var trimmed = text.Trim();
+ return trimmed.Length == 0;
+ }
+
///
/// Returns the password as a series of *s
///