title: How to make query parameter values case-insensitive
body: <p>I want an endpoint that is a GET method to /book with a query parameter called name. If the name is 'scott', I want to return &quot;Cracking the Coding Interview,&quot; but if it's 'SCOTT,' I want to do the same thing. Why does this not work?</p>
  <pre><code>app.get('/book', function (req, res) {
    let result = ''
    const name = req.query.name.toString().toLowerCase()
    if (name === &quot;scott&quot;) {
      result = &quot;Cracking the Coding Interview&quot;
    } else if (name === &quot;enoch&quot;) {
      result = &quot;The Pragmatic Programmer&quot;
    } else {
      result = &quot;Good Old Neon&quot;
    }
    res.send(result);
  });
  </code></pre>