In Earlier versions of .NET, String class has IsNullOrEmpty() method, which can be used to check whether the string is null or empty. To check for white spaces, we need to write additional code.
Now .NET 4.0 introduced a new method, IsNullOrWhiteSpace(...