Added support for constant int and string in DynamicText.