title: jQuery: How to trim new line and tab characters between words
body: <p>Hi I am getting new line(\n) and tab(\t) characters between words and I was trying to trim those by using <code>$.trim()</code> function but its not working. So can anyone have some solution for this type of problem.</p>
  
  <p>Ex: </p>
  
  <pre><code>var str = "Welcome\n\tTo\n\nBeautiful\t\t\t\nWorld";
  alert($.trim(str));
  </code></pre>
  
  <p>the above code is not working.</p>