Added some verification that the css class name is a valid class name