Changed .advancewidth to .charwidth