Trim path.