title: Java String IndexOf before Replace?
body: <p>Just curious to know that in terms of performance if we want to replace some characters in out string which may or may not be present in the input string should we check for the existence of the char sequence in the String using index of>0 or we can directly call the String replace function.</p>
  
  <p>Thanks,
  Vaibhav</p>