use Array#include? instead of String#in as it isn't available in ruby 1.9.3