Added workaround for using strings with treeply