title: Two at a time string algorithms?
body: <p>Is there a way to do the following in a single command (in order to avoid the test)</p>
  
  <pre><code>if (mystring.find_first_not_of("X") != std::string::npos) {
      mystring.erase(0, mystring.find_first_not_of("X"));
  }
  </code></pre>