Converts a given number into words format