nit: `charCode = 48` ?