title: String with backlash- java
body: <p>I have a string as below:</p>
  
  <pre><code>String str="cn=sxscapp3\20,ou=Division,o=abc";
  </code></pre>
  
  <p>Now I would like to get substring of the string.</p>
  
  <pre><code>String newstr=str.substring(0,str.indexOf(","));
  
  Expected result : cn=sxscapp3\20
  
  Actual result: cn=sxscapp3\
  </code></pre>
  
  <p>Any Advice on the above scenario would be helpful.</p>