See string.IsNullOrWhiteSpace()
>I could test it to find out but it is easier to ask :). If the string 'theString' is empty but like this " " (that is has a bunch of empty characters), would .IsNullOrEmpty(theString) return true? Or I need to apply .trim() to the string?
>
>>It's a static method ot the string object:
String.IsNullOrEmpty(theString)
>>
>>>The line would be what I said below. I type the name of my string then press on the period (.). The intellisense shows all properties and methods available. But .IsNullOrEmpty is not in the drop-down list.
>>>