Trimming string removes more than needed
<p>The below code is meant to trim my string. Unfortunately it's removing more than the 'conf' value.</p>

<p>Did I do this correctly?</p>

<p>What this is doing is adding a double html response address, so i'm removing the first url which is 'conf'</p>

<pre><code>String pageIdUrl = response.getRedirectUrl();

if(pageIdUrl.startsWith(conf.toString()));
{
    pageIdUrl = pageIdUrl.substring(conf.toString().length());
}
</code></pre>
