title: Finding the best string match with R
body: <p>Starting with this <code>L Hernandez</code></p>
  
  <p>From a vector containing the following: </p>
  
  <pre><code>[1] "HernandezOlaf "    "HernandezLuciano " "HernandezAdrian "
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>'subset(ABC, str_detect(ABC, "L Hernandez") == TRUE)'
  </code></pre>
  
  <p>The name Hernandez which includes the capital L anyplace is the desired output. </p>
  
  <p>The desired output is <code>HernandezLuciano</code></p>