title: How to take a string and return the capitalized format of a word
body: <pre><code>int length = s.length();
  
  if (length = 0){
      return s;
  }
  
  else {
      return s.charAt(0).toUpperCase()+ s.substring(1);
  }
  </code></pre>
  
  <p>I get two errors saying:</p>
  
  <pre><code>if (length = 0){
  ^^^^^^^^^^
  Type mismatch: cannot convert from int to boolean
  
  
  return s.charAt(0).toUpperCase()+ s.substring(1);
         ^^^^^^^^^^^^^^^^^^^^^^^^^
  Cannot invoke toUpperCase() on the primitive type char
  </code></pre>
  
  <p>Plus, if it's an empty sting it should just return it.
  That's why I'm using an If-Else statement.</p>