prefixToTruncate now truncates subsequences of the path