PathV2: Use StringRef::substr to simplify substring creation.