implements Startswith, Endswith, Contains matcher