use data_str throughout