strike out everything after path