title: How to remove newLines at the beginning and at the end of a Ruby string
body: <p>I need to remove newlines at the beginning and at the end of a string in ruby (some sort of trimming).</p>
  
  <p>But JUST at the beginning and the end... The new lines located in the middle of the string must remain untouched.</p>
  
  <p>Thank you!</p>