 <p>Try this:</p> <pre><code>$title = explode('-', $title, 2); $title = trim($title[1]); </code></pre> <p>First you split the title in the two parts, than you keep only the last one removing all extra whitespaces.</p> <p>If you have at least <strong>PHP 5.4</strong>, you could do</p> <pre><code>$title = trim(explode('-', $title, 2)[1]); </code></pre>