Combine duplicate strings in generated code