Remove the spaces from the following sentence: In 1869 Sofia travelled to Heidelberg to study mathematics and the natural sciences, only to discover that women could not matriculate at the university.
In1869SofiatravelledtoHeidelbergtostudymathematicsandthenaturalsciences,onlytodiscoverthatwomencouldnotmatriculateattheuniversity.