title: Android String.replace not working
body: <p>I am trying to replace a character of a string with another character but not able to do that.I have used String function for this
  Code.</p>
  
  <pre><code>String text;
  text="2:15";
  if(text.contains(":"))
  {
      replace(":",".");
  }
  Log.i("Tag",text);
  </code></pre>
  
  <p>I want to change 2:15 to 2.15, but it remains the same.</p>