[cpp] combine string constant terms into single string