title: ReplaceAll function in javascript
body: <p>I am getting a string <code>"test+test1+asd.txt"</code> and i want to convert it into <code>"test test1 asd.txt"</code></p>
  
  <p>I am trying to use function <code>str = str.replace("/+/g"," ");</code></p>
  
  <p>but this is not working</p>
  
  <p>regards,
  hemant</p>