You can replace lines 900-904 with:
````
replace(s.begin(), s.end(), " ", "");
````
(you may need to #include <algorithm> first)