To detect intrusion in networks using string matching algorithms