normalize group names to array