* fixed the too long for integer substring function (dirty fix)