Fixing bug in itoa10