Converts numbers to string representations