The task is to read a passage and convert numbers in their text forms into digit forms. The text numbers can be used to represent Quantity, Dates and Time, Addresses or Positions.

Example Input: These indeed were out to the value of three hundred sixty seven thousand, eight hundred pounds.
Example Output: These indeed were out to the value of £367,800.

Example Input: Neild found at his visit to Newgate in eighteen ten,
Example Output: Neild found at his visit to Newgate in 1810,

Example Input: then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the twenty first December, eighteen forty two.
Example Output:
then Home Secretary, and the prison, which contained five hundred and twenty cells, was occupied on the 21st December, 1842.