Added workaround for using strings with treedply