title: Replace String with characters with substring
body: <p>I tried to make security to display email data by replacing some words with symbol (*) but not as expected there might be an error in making the example script as below.</p>
  
  <pre><code>String email = "thismyemail@myhost.com";
  String get_text = email.get_text(3, 6);
  String hasil = email.replace(get_text,"*");
  email_string = (EditText) findViewById(R.id.emailT);
  email_string.setText(hasil);
  </code></pre>
  
  <p>But the result is like this</p>
  
  <pre><code>thi*email@myhost.com
  </code></pre>
  
  <p>Which I expect</p>
  
  <pre><code>thi***email@myhost.com
  </code></pre>