ir: Add string terminals in buildConstantString.