1. k = conds.each do |key, value|
  2. index = msg.split.find_index { |e| e.match value }
  3. break [key, index] if index
  4. end