title: Why replace `capitalize` with a check for whether it is lowercase before `titlecase` is called?
body: <p>When using Kotlin 1.5, Android Studio warns that <code>String.capitalize</code> is deprecated.</p>
  <p>The suggested replacement is:</p>
  <pre class="lang-kotlin prettyprint-override"><code>myString.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.getDefault()) else it.toString() })
  </code></pre>
  <p>Why is the check for <code>isLowerCase</code> neccessary?</p>
  <p>Why can't I just do this:</p>
  <pre class="lang-kotlin prettyprint-override"><code>myString.replaceFirstChar { it.titlecase(Locale.getDefault()) })
  </code></pre>