Library for dynamic substring searching