added a where() method that accepts a 2d string array