drop substr in the tree builder, its the frontends job