def validISBN13?(str)
  cleaned = str.delete().chars
  return false unless cleaned.size == 13
  cleaned.each_slice(2).sum{|d1, d2| d1.to_i + 3*d2.to_i }.remainder(10) == 0
end

isbns = [, , , ]
isbns.each{|isbn| puts  }