Change temp_str variable name in reducer