restored template string to grammar