in fact you can use method `grep` here - `parameters.split.grep /\A#{BOOT_PARAM}=/i`