title: Best way to use split and strip
body: <p>My function scrapes my servers for the command and outputs something along the lines of <code>offset=1.3682</code> which <code>metrics_emit</code> uses to send to our metrics collector/visualizer, datadog. </p>
  
  <p>What I need to do is strip off the <code>offset=</code> part because <code>metrics_emit</code> only wants the numerical value. What would be the best way of stripping <code>offset=</code> as well as calling <code>strip()</code> on <code>i</code> so that it gets rid of all newlines and trailing/leading whitespaces?</p>
  
  <pre><code>def check(self):
      output = sh.ntpq("-nc rv")
      out_list = output.split(",")
      for i in out_list:
          if "offset" in i:
              self.metrics_emit('ntp.offset', i)
              break
  </code></pre>