Detailed Instructions: 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.
Q: became the victim of the most cowardly and unmanly outrages, and the attempted murder of the sovereign by Oxford in eighteen forty
A:
became the victim of the most cowardly and unmanly outrages, and the attempted murder of the sovereign by Oxford in 1840