Implement Prefix Path Trimming