Making pathEquals and pathStartsWith