cpp: String interning for triggers