Use broadcastmsg.indexOf(":") === -1 && broadcastmsg.indexOf("***") === -1