trim base path text