Add substr search type (fixes #16)