Why did new Amsterdam change it name to New York?

The British took control of the colony from the Dutch in 1664 and renamed it New York in honor of King Charles II's brother James, Duke of York, who had ordered the colony's capture.
Copyright Wanderlust World © https://www.ynyoo.com