Detect base packages with empty string name

Check string with more strict conditions