Remove the spaces from the following sentence: The Danish scholar, Niels Lukman, elaborated in 1943 in his doctoral thesis on the theory that the Heruls became earls in the Danish kingdoms.
TheDanishscholar,NielsLukman,elaboratedin1943inhisdoctoralthesisonthetheorythattheHerulsbecameearlsintheDanishkingdoms.