Task: Question Answering
Input (English): Passage: Monday marked the beginning of organised action, even as order broke down in the streets, especially at the gates, and the fire raged unchecked. Bloodworth was responsible as Lord Mayor for co-ordinating the fire-fighting, but he had apparently left the City; his name is not mentioned in any contemporaneous accounts of the Monday's events. In this state of emergency, the King again overrode the City authorities and put his brother James, Duke of York, in charge of operations.
James set up command posts round the perimeter of the fire, press-ganging into teams of well-paid and well-fed firemen any men of the lower classes found in the streets. Three courtiers were put in charge of each post, with authority from Charles himself to order demolitions. This visible gesture of solidarity from the Crown was intended to cut through the citizens' misgivings about being held financially responsible for pulling down houses. James and his life guards rode up and down the streets all Monday, rescuing foreigners from the mob and attempting to keep order. "The Duke of York hath won the hearts of the people with his continual and indefatigable pains day and night in helping to quench the Fire," wrote a witness in a letter on 8 September.On Monday evening, hopes were dashed that the massive stone walls of Baynard's Castle, Blackfriars would stay the course of the flames, the western counterpart of the Tower of London. This historic royal palace was completely consumed, burning all night.A contemporary account said that King Charles in person worked manually, that day or later, to help throw water on flames and to help demolish buildings to make a firebreak. 
Question: What is the first name of the person who hath won the hearts of the people with his continual and indefatigable pains day and night?
Output (English): James.