change class to string