String Search implementation for CS 1332