A VLSI system for string matching