Code generation of toString()