if (-1 != index $str, $key) { # Do something }