Fixed Ptree strings to be allocated, working on Ptree passing.