I have a string 

```
var string = "aa--'aa____\_____abccc".

```

I want to replace all underscores with single space. How can I do this using javascript?

I don't want to use any regular expression. Please suggest the possible ways.