Implemented split(), to separate a path by location and metapath