fix error String in class