diff --git a/parser.src/ComputingTasks.cc b/parser.src/ComputingTasks.cc index aa09e4fe9..e16b1ed28 100644 --- a/parser.src/ComputingTasks.cc +++ b/parser.src/ComputingTasks.cc @@ -294,8 +294,8 @@ void ComputingTasks::set_trend_element (string name, string expression) // int id = SymbolTable::getID(name); if (type == eEndogenous) { - *output << "tmp1 = strmatch(" << name << ",options_.varobs,'exact');\n"; - *output << "options_.trend_coeffs{tmp1} = " << expression << ";\n"; + *output << "tmp1 = strmatch('" << name << "',options_.varobs,'exact');\n"; + *output << "options_.trend_coeffs{tmp1} = '" << expression << "';\n"; } else {