title: How to remove the white space in text area angular js
body: <p>Is there anyway to trim/remove initial and middle white space in text area when user enters N number of spaces.</p>
  
  <p>The whitespace is also calcualted as character. </p>
  
  <p><strong>Actual Results:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/SPSzP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SPSzP.png" alt="enter image description here"></a></p>
  
  <p><strong>Expected Resutls</strong></p>
  
  <p><a href="https://i.stack.imgur.com/1BPc6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1BPc6.png" alt="enter image description here"></a></p>