Node.js examples for String:sub string
Use indexOf to check if string contains a substring
String.prototype.contains = function(txt) { return (this.indexOf(txt) >= 0); }