Write the following list of characters into a correctly formed sentence: Magnuswaskilled,kingNielsfledtothetownofSlesvig,butthetown-dwellersavengedbykillingkingNiels.
Magnus was killed, king Niels fled to the town of Slesvig, but the town-dwellers avenged by killing king Niels.