Unified string emptiness testing