Force class to be a string