title: How to replace part of a String in Java?
body: <p>Im trying to replace part of a String based on a certain phrase being present within it. Consider the string <em>"Hello my Dg6Us9k. I am alive."</em>.</p>
  
  <p>I want to search for the phase "my" and remove 8 characters to the right, which removes the hash code. This gives the string <em>"Hello. I am alive."</em> How can i do this in Java?</p>