Convert digit representation of a number to text representation