trimPath