# Working with String Template GroupDocs.Assembly API allows you to use a string as input and output template, instead of document. This feature improves programmability while working with strings instead of documents, the resultant output string can be used as per the application needs. Follow these steps to using a string as input and output template: * Initialize [DocumentAssembler](https://reference.groupdocs.com/net/assembly/groupdocs.assembly/documentassembler) * Define **sourceString @"<<\[yourValue\]>>"** * Convert sourceString to **sourceBytes** using **Encoding.UTF8.GetBytes(sourceString)** * Get**targetBytes** using [DocumentAssembler.AssembleDocument()](https://reference.groupdocs.com/net/assembly/groupdocs.assembly/documentassembler/methods/assembledocument/index) * Get **targetString** usingĀ **Encoding.UTF8.GetString(targetBytes)** {{< alert style="info" >}}A text template made of ASCII characters only, with no byte order mark, gives a UTF-8 report without a byte order mark, so **Encoding.UTF8.GetString** also reads non-Latin data of such a report correctly. See [Encoding of Text and HTML Reports]({{< ref "assembly/net/getting-started/supported-document-formats.md#encoding-of-text-and-html-reports" >}}).{{< /alert >}}