Hierarchical fix wip

Added the LtreeTrim flag for better hierarchical output.