Fix non-empty string assertion