Convert spelled numbers such as 'one thousand, two hundred and thirty-three' to their equivalent form in digits (1233)

Adapted and extended from https://github.com/ghewgill/text2num
