The change to split means trailing spaces aren't stripped any more, perhaps add a `.map {|v| v.chomp}` or similar?