title: Uppercase first letter of a string chrashes in IE7
body: <pre><code>actualizarTituloWeb('brand name - '+seccion.toLowerCase().replace(/(?:_| |\b)(\w)/g, function(str, p1) { return p1.toUpperCase()}));
  </code></pre>
  
  <p>where</p>
  
  <pre><code>function actualizarTituloWeb(titulo){
          $( 'title' ).html ( titulo );  
  }
  </code></pre>
  
  <p>Also tried with:</p>
  
  <pre><code>function actualizarTituloWeb(titulo){
  
          titulo = titulo[0].toUpperCase() + titulo.substring(1);
  
              titulo = titulo.toLowerCase();
  
              $( 'title' ).text ( titulo );
  
          return false;
  }
  </code></pre>
  
  <p>and seccion has values such as 'reserva', 'ofertas' , ..</p>
  
  <p>I am not really sure why is not working but this actually makes the whole script crash (can be tested in live here: <a href="http://toniweb.us/gm2" rel="nofollow">http://toniweb.us/gm2</a> ) in IE7 and the title of the current document is neither updated,</p>
  
  <p>any idea what am i missing?</p>
  
  <p>-EDIT-</p>
  
  <p>Just realised that the problem is in this line! why?</p>
  
  <pre><code>titulo = titulo[0].toUpperCase() + titulo.substring(1);
  </code></pre>
  
  <p><strong>Please note:</strong> We can not use CSS here to achieve this because it will be used for the document.title</p>