title: Most efficient way to turn all caps into title case with JS or JQuery?
body: <p>I have a string that is in ALL caps originally and I want it to be title case:</p>
  
  <blockquote>
    <p>THIS IS MY STRING WHY AM I YELLLING?</p>
  </blockquote>
  
  <p>And I want it to be:</p>
  
  <blockquote>
    <p>This Is My String Why Am I Yelling?</p>
  </blockquote>
  
  <p>I can't use css text-transform:capitalize when the letters are in CAPS initially. So I know I have to use JS. I tried this, which works but I'm not sure it's very efficient:</p>
  
  <pre><code> $('.location').each(function () {
  
      var upper = $(this).html();
      var lower = upper.toLowerCase();
      $(this).replaceWith(lower); 
  
  });
  </code></pre>
  
  <p>And now that my letters are actually lowercase, I use CSS <code>text-transform:capitalize</code>. </p>
  
  <p>Is there a more efficient way to do this? (I'm already using jQuery on the site, so that's why I've used it above.)</p>
  
  <p>Thanks!</p>