trim paths from list return