Original sentence: The War in Afghanistan (or the U.War in Afghanistan), code named Operation Enduring Freedom – Afghanistan (2001–14) and Operation Freedom's Sentinel (2015–present), followed the United States invasion of Afghanistan of 7 October 2001
Edited sentence: The U.War in Afghanistan (or the War in Afghanistan), code named Operation Enduring Freedom – Afghanistan (2001–14) and Operation Freedom's Sentinel (2015–present), followed the United States invasion of Afghanistan of 7 October 2001