Replacing part of a text using jQuery's .replaceWith function
<p>I am working on a new masterpage withing sharepoint 2010. One of the placeholders produces the sitename - the page name in a string. When the page is ready the sources shows this for exampe. </p>

<pre><code>&lt;h1 class="ribbonmc"&gt;
    Devness Squared - Mark Jensen
&lt;/h1&gt;
</code></pre>

<p>Devenss Squared is the site name and Mark Jensen is the page name. I am trying to remove the <strong>sitename</strong> from being displayed and show the page name only using jQuery. This is what I have so far.</p>

<pre><code>$(document).ready(function() {
        $('#ribbonmc').text(function(i, oldText) {
            return oldText === 'Devness Squared - ' ? '' : oldText;
        });
    });
</code></pre>
