nat2string function fixed
digit2ascii function fixed