JSFiddle - React, Tailwind, and code Playground

JavaScript

String.prototype.has = function(text) { return this.toLowerCase().indexOf("[" + text.toLowerCase() + "]") != -1; };

    var Countries = " [United States] [Canada] [India] ";

     if (Countries.has("Spain")) {
       alert("We got Paella!");
    } 

    if (Countries.has("Canada")) {
       alert("We got canadian girls!");
    }

     if (Countries.has("cAnAdA")) {
       alert("We got insensitive cAnAdiAn girls!");
    }

      if (Countries.has("Ana")) {
       alert("We got Ana, bad, bad!");
    }