 <pre><code>str.str[0].toUpperCase(); </code></pre> <p>should just be </p> <pre><code>str[0].toUpperCase(); </code></pre> <p>If that isn't the case, you should try <code>console.log(str)</code> and find out what exactly <code>str</code> is but I believe this is your problem.</p>