parse class names