replace spaces with dashes in class name