title: How to replace or convert the first occurrence of a dot from a string in java
body: <p>Example: 
  Input </p>
  
  <pre><code>Str = P.O.Box
  </code></pre>
  
  <p>Output </p>
  
  <pre><code>Str= PO BOX
  </code></pre>
  
  <p>I can able to convert the string to uppercase and replace all dot(.) with a space.</p>
  
  <pre><code>public static void main(String args[]){
      String s = "P.O.Box 1836";
      String uppercase = s.toUpperCase();
      System.out.println("uppercase "+uppercase);
      String replace = uppercase.replace("."," ");
      System.out.println("replace "+replace);
  
  }
  </code></pre>