title: How can i change the url link and use it with selenium
body: <p>I have some URL like "<a href="https://some.url.ru/new-token" rel="nofollow">https://some.url.ru/new-token</a>". I need change it to "<a href="http://some.url.ru/new-token" rel="nofollow">http://some.url.ru/new-token</a>" (mean change HTTPS to HTTP). I can't change whole URL, because every time I get new token.
  (Selenium, Java).</p>
  
  <p>So, my question:</p>
  
  <ol>
  <li><p>I get the URL: driver.getCurrentUrl();</p></li>
  <li><p>then I need change it - change HTTPS to HTTP: HOW?</p></li>
  <li><p>I need use new URL: HOW?</p></li>
  </ol>
  
  <p>I found solution:</p>
  
  <pre><code>StringBuffer newUrl = new StringBuffer(driver.getCurrentUrl());
  newUrl.deleteCharAt(4); //4 - it's number of symbol what should cut, first symbol have number "0"
  driver.get(String.valueOf(newUrl)); //there url would be without 5th symbol. 
  </code></pre>
  
  <p>So: NOW question still stay one of two: how change "some" to "another" in example?</p>