String s = "smoke.detected" if (s.contains("smoke")) println(s)