Add .toString() to core classes