title: How to capitalize first letter of each word, like a 2-word city?
body: <p>My JS woks well when the city has one word:</p>
  
  <ul>
  <li>cHIcaGO ==> Chicago</li>
  </ul>
  
  <p>But when it's</p>
  
  <ul>
  <li>san diego ==> San diego</li>
  </ul>
  
  <p>How do I make it become San Diego?</p>
  
  <pre><code>function convert_case() {
      document.profile_form.city.value =
          document.profile_form.city.value.substr(0,1).toUpperCase() + 
          document.profile_form.city.value.substr(1).toLowerCase();
  }
  </code></pre>