Added workaround for using strings with treeplyr