change String(code) to code.toString()