Javascript/jQuery uppercase first letter of title with some exceptions?
<p>I have the following code adapted from a previous question/answer:</p>

<pre><code>var str = $('title').text();
str = str.toLowerCase().replace(/\b[a-z]/g, convert);
       function convert(){
 return arguments[0].toUpperCase();
       }
 $('title').text(str);
</code></pre>

<p>I need to add some exceptions to this such as 'and'.  </p>

<p>Thanks in advance.</p>
