title: Protractor:How to remove extra space from string just like we use in java getText.trim()
body: <p>How to remove extra space from string just like we use in <code>java getText.trim()</code> in <strong>Protractor</strong>,<br><strong>I used like this:</strong><br></p>
  
  <pre><code>var columnvalue=rows.get(9).getText();
  var columnvalue1=columnvalue.trim();
  </code></pre>
  
  <p><strong><em>but i got error:</em></strong>
  <code>Object [object Object]</code> <em>has no method 'trim'</em></p>