title: Add + infront of every word of given sentence in JavaScript
body: <p>I think this problem can be done with regex. But unfortunately I am not good in regex. I have a sentence now I want to add '+' in front of every word.</p>
  
  <p>Example: <strong>Input:</strong> I have a pen<br>
  <strong>Output will be:</strong> +I +have +a +pen</p>
  
  <p>I have found some solutions but these don't solve my problem. I have tried with the below way. But it gives me output like this:
  <code>I+have+a+pen+</code> but I want <code>+I +have +a +pen</code></p>
  
  <pre><code>  $('.addCharacter').click(function(event) {
        var textareaInput=$('.textareaInput').val();
        var strToArr=textareaInput.split(' ');
        var arrUniqueVal=arrUnique(strToArr);
  
        $('.textareaInput').val(arrUniqueVal.join('+'));
        console.log(arrUniqueVal);
        //alert("ok");
     });
  </code></pre>
  
  <p>N.B: I want to be able to input multiple sentences.</p>
  
  <p><strong>Update: Input:</strong> </p>
  
  <pre><code>hello world one  
  hello world two  
  hello world three 
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <pre><code>+hello +world +one  
  +hello +world +two  
  +hello +world +three 
  </code></pre>