Empty string checks and assertions for labels and groups