Extracts String from Data object
String getStringObject(Data data) { Object obj = data.obj; if (obj is String) { return obj; } return obj.toString(); }