title: How to allow leniency in an input query?
body: <p>I want users to be able to input a name and have the code work even though the name is not the exact same as the one in the dataset. For example: inputting "Camden" works, but inputting "camden" does not work and returns an error. </p>
  
  <p>How to make the code allow for example a non capitalized letter or even a wrong letter?</p>
  
  <pre><code>    app.get("/api/borough_by_name", function(req, res){
      // set the type of content in the response
      res.writeHead(200, {'Content-Type': 'application/json'});
  
      // read input parameter from request
      var name = req.query['name'];
  
      // validate input, check if the parameter is valid or not
      if (name === undefined){
          // return error as a JSON string
          var str = JSON.stringify( {"error":"Parameter 'name' is not defined."} );
          res.end( str );
      }
  
      var borObj = null;
      // loop over the statesData GeoJSON structure
      for (i in londonBoroughs.features){
          var feat = londonBoroughs.features[i];
          if (feat.properties.NAME == name){
               borObj = feat;
               continue;
          }
      }
  
      if (borObj == null){
          // borough not found, return an error as a JSON string
          var str = JSON.stringify( {"error":"NAME '"+name+"' doesn't exist. Please check the spelling."} );
          res.end( str );
      }       
  
      var respJson = {};
      respJson["results"] = [ borObj ];
      res.end( JSON.stringify( respJson ) );
  </code></pre>