When does a string contain text? Well when the string exists and it does not contain an empty text. When does a string contain an empty text? When the length of the string is 0.
So, answering your question, a text is not empty when it exists and s.Length != 0:
if (s != null && s.Length > 0) { /*s is not empty*/ }
or better yet
if (s?.Length > 0) { /*s is not empty*/ }
or if you prefer a string contains text when it is not nonexistant or empty:
if (!string.IsNullOrEmpty(s)) { /*s is not empty*/ }
Now if texts consisting only of whitespaces must also be considered as empty, then when is a text not empty? When the text is anything but nonexistant or empty spaces, that is, IsNullOrWhiteSpace is false:
if (!string.IsNullOrWhiteSpace(s)) { /*s is not empty*/ }
IsNullOrWhiteSpace?!(not) operator