Updates to finding strings in NxM matrices