could use a single regex

```...replace(/[+\s]+/g, '-')...```