JSFiddle - React, Tailwind, and code Playground
by Eric L
HTML
<div id="blah">
TERRE HAUTE SOUTH, IN
</div>
JavaScript 1.7
var city = "TERRE HAUTE SOUTH"
if($("#blah").text().indexOf(city + ",") < 0){
alert('work');
}else{
alert('nope');
}