added support for partial string matching.