I made a very small program which takes an int and converts it into string in SML:
fun int2str i = if i < 0 then "~" ^ Int.toString (~i) else Int