use is_a? Array for String#% argument check as the original PR did in #2349