added naive string matching alorithm