i'd put this line above previous one, because straight == comparison would be a lot quicker than .to_s and a regex match.