def check(name)
/#{name}/ =~ "hiroyuki"
end

p check("hiroyuki") # => 0