made method of word search stricter