Making it work in ruby1.8

Replaced collect with strip