Better check for empty string for warning text