title: python - remove empty lines from end and beginning of string
body: <p>I want to remove all empty lines from the beginning and the end of a string.</p>
  
  <p>So the following:</p>
  
  <pre><code>s = """
  
  
          some identation here
  
  lorem ipsum
  
  """
  </code></pre>
  
  <p>Would become:</p>
  
  <pre><code>s = """        some identation here
  
  lorem ipsum"""
  </code></pre>
  
  <p>I don't like my solutions. I want something as simple and short as possible. </p>
  
  <p>Is there something built-in in python3? What are your suggestions? </p>