static String? normalizeTag(String? tag) { if (tag == null) return null; tag = tag.toLowerCase().trim(); if (tag.isEmpty) return null; return tag; }