Support both commas and spaces as separators in class attributes.