title: Scala strip trailing whitespace
body: <p>The Scala <code>String</code> method (in class <code>StringOps</code>) <code>stripMargin</code> removes leading whitespace from each line of a multi-line <code>String</code> up to and including the pipe (<code>|</code>) character (or other designated delimiter).</p>
  
  <p>Is there an equivalent method to remove trailing whitespace from each line?</p>
  
  <p>I did a quick look through the Scaladocs, but could not find one.</p>