title: Replace the first letter of a String in Java?
body: <p>I'm trying to convert the first letter of a string to lowercase.</p>
  
  <pre><code>value.substring(0,1).toLowerCase() + value.substring(1)
  </code></pre>
  
  <p>This works, but are there any better ways to do this? </p>
  
  <p>I could use a replace function, but Java's replace doesn't accept an index. You have to pass the actual character/substring.  It could be done like this:</p>
  
  <pre><code>value.replaceFirst(value.charAt(0), value.charAt(0).toLowerCase())
  </code></pre>
  
  <p>Except that replaceFirst expects 2 strings, so the <code>value.charAt(0)</code>s would probably need to be replaced with <code>value.substring(0,1)</code>. </p>
  
  <p>Is there any standard way to replace the first letter of a String?</p>