title: String replace with integer not working
body: <p>I have been working on some Java code and I came across a really weird error, Im trying to replace a piece of string with an Integer.
  Added all kinds of debugs but I cant seem to find it out.</p>
  
  <pre><code>private void executeMsg() {
      value = value.replaceAll("(&amp;([a-f0-9]))", "§$2");
  
      String border = tostiuhc.getWorldManager().getBorderSize() - tostiuhc.getShrinksize() + "";
      String time = tostiuhc.getPhase().getMinutes() + "";
  
      System.out.println("BORDER: " + border);
      System.out.println("TIME: " + time);
  
      value = value.replace("-border-", border + "");
      value = value.replace("-time-", time + "");
  
      tostiuhc.broadcast(value + " " + time);
  }
  </code></pre>
  
  <p>As you can see, I create new String called 'time' and print it out 'TIME: value'.
  The original string that I'm changing is: The event is now -time- minutes in!</p>
  
  <p><img src="https://i.stack.imgur.com/81vcY.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/v1pTE.png" alt="enter image description here"></p>
  
  <p>The problem here is that System.out.println("TIME:") shows the correct value, but the .replace just DOESNT work.
  I cant get my head around this, anyone has any idea?</p>