Corrected sed option to reduce spaces

Checked on Kim's computer, should work both on linux and mac. About `-E` option:

> `-E` — Interpret regular expressions as extended (modern) regular expressions rather than basic regular expressions (BRE's).