title: removing white spaces at beginning and end of string
body: <p>I've got a problem with removing whitespaces at the beginning and end of string. For e.g. I've got a string like:</p>
  
  <p><code>
  \r\n\t- Someone will come here?\n- I don't know for sure...\r\n\r\n
  </code></p>
  
  <p>And I need to remove whitespaces <strong>only</strong> at the end and beginning (string should be look like:
  <code>
  - Someone will come here?\n- I don't know for sure...
  </code>
  Also there could be a lot of variants of string end: "\r\n\r\n", "\r\n", "\n\r\n" and so on...</p>
  
  <p>Thanks.</p>