Coalesce class names