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.

Within a couple of years the number of persons sentenced to death in England had fallen from four hundred and thirty eight in eighteen thirty seven
Within a couple of years the number of persons sentenced to death in England had fallen from four hundred and thirty eight in 1837

Some of that feeling was expressed in the incident involving then vice presidential candidate Johnson during the nineteen sixty campaign,
Some of that feeling was expressed in the incident involving then vice presidential candidate Johnson during the 1960 campaign,

At the time of the assassination, the active PRS general files contained approximately fifty thousand cases
At the time of the assassination, the active PRS general files contained approximately 50,000 cases