> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs.itential.com/itential-platform/6/studio/tasks/reference/string-value-of/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.itential.com/_mcp/server. # stringValueOf > Use the stringValueOf task to return the primitive value of a string object as a string data type. The `stringValueOf` task returns the primitive value of a string object as a string data type. Primitive value is data that is stored directly in the location the variable accesses. ## Potential use case This method is rarely used in data manipulation; however, it is useful when you need to convert different types of values into a string. ## Properties | Incoming | Type | Description | | -------- | ------ | ----------------------------------------- | | `str` | String | Required. The string to get the value of. | | Outgoing | Type | Description | | -------- | ------ | ------------------------------------------------------------------- | | `string` | String | A string representing the primitive value of a given string object. | ## Example In this example, the `str` variable is set to `Hello World`. ![](/_fern-img/63eecef6e15376d124cab84d24f43e0c9b4c0ca673e2c4c1ce361858d340f5ec.webp) The string is validated and the expected result will be `"Hello World"` contained within double quotation marks. ![](/_fern-img/cfc48d4d28f621f53c7745375bd524cc1be6e03bc30cbe44668f6d43896a8e2e.webp) > Use the stringValueOf task to return the primitive value of a string object as a string data type.