Ah I had forgotten this.. 
Ruby wipes tailing empty-strings

irb(main):001:0> "aaabbb".split(/b/)
=> ["aaa"]
irb(main):002:0> "aaabbbc".split(/b/)
=> ["aaa", "", "", "c"]
irb(main):003:0> "aaabbbcbb".split(/b/)
=> ["aaa", "", "", "c"]
irb(main):004:0> "aaabbbcbbc".split(/b/)
=> ["aaa", "", "", "c", "", "c"]
irb(main):005:0>

Why is it smart to remove tailing empty strings?

--
Simon Strandgaard