function to convert a number to word