title: Using replace method to replace only one char or string
body: <p>My problem is I want to only replace one specific char or part of the string and not the rest of the same char</p>
  
  <p>my example</p>
  
  <pre><code>char one = '#';
  char two = '#';
  char three = '#';
  char four = '#';
  char five = '#';
  char six = '#';
  char seven = '#';
  char eight = '#';
  char nine = '#';
  
  String chart = "\n"+ one + two + three + "\n" + four + five + six + "\n"+ seven 
       + eight + nine + "\n\n";
  
  chart = chart.replace(five, '/');
  System.out.print(chart);
  </code></pre>
  
  <p>It outputs: /// /// ///</p>
  
  <p>Instead of: ### #/# ###</p>
  
  <p>Any help is appreciated!</p>