title: java : Find a word in a string and replace it with a new word if its at a specific position
body: <p>I have a sample string such as :</p>
  
  <blockquote>
    <p>" I Love cricket. I Love football. I Love tennis. I Love every game!!!
    "</p>
  </blockquote>
  
  <p>Now what I want to do is first time replace the the <strong>I</strong> (at position <strong>1</strong>) to "<strong>We</strong>". So it becomes </p>
  
  <blockquote>
    <p>" <strong>We</strong> Love cricket. I Love football. I Love tennis. I Love every
    game!!! "</p>
  </blockquote>
  
  <p>Again in the second run I want to replace <strong>I</strong> (at position <strong>7</strong>) to "<strong>We</strong>" .</p>
  
  <blockquote>
    <p>" I Love cricket. I Love football. <strong>We</strong> Love tennis. I Love every
    game!!! "</p>
  </blockquote>
  
  <p>So what I mean to say is replacing a word at a specific position with a new word. I tried following things so far:</p>
  
  <ol>
  <li><code>ReplaceAll</code> - worked for only when the words are uniques but fails in every other scenario.</li>
  <li><code>StringTokenizer</code> - used it go get an arraylist. replaced the word at the spcific position and then again appended all elements in the arraylist. Issue is the special characters are lost.</li>
  </ol>
  
  <p>Please suggest a better way out of doing it.</p>
  
  <p>EDIT: The delimeter can change and isn't specifically a " ".</p>