prefix path trimming