Remove the spaces from the following sentence: His research involved studying the distribution of quadratic residues, and he invented new methods to attack his problems involving character sums and exponential sums.
Hisresearchinvolvedstudyingthedistributionofquadraticresidues,andheinventednewmethodstoattackhisproblemsinvolvingcharactersumsandexponentialsums.