How to easily check if a string is blank or full of an undetermined amount of spaces, or not?
private bool IsNullOrEmptyOrAllSpaces(string str) { if(str == null || str.Length == 0) { return true; } for (int i = 0; i < str.Length; i++) { if (!Char.IsWhiteSpace(str[i])) return false; } return true; }