In 4.0 we have IsNullOrWhiteSpace to check string contains nothing but whitespace
string yourString = " ";
Console.WriteLine(String.IsNullOrWhiteSpace(yourString));
Output
True
string yourString = null;
Console.WriteLine(String.IsNullOrWhiteSpace(yourString));
Output
True