If this path starts with the passed in path then strip it
If this path ends with the passed in path then strip it