Add DIRECTDATA and STRING type to template