Fix TypeError on line 169, in data_get_str