> For the complete documentation index, see [llms.txt](https://docs.internetobject.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.internetobject.org/structure-and-syntax/values/string.md).

# Strings

The three string forms — open, regular, and raw.

Strings represent sequences of Unicode code points. They carry textual data and preserve whitespace and formatting within their boundaries.

Internet Object supports three string forms, each with its own syntax and use cases:

```ebnf
stringValue = openString | regularString | rawString
```

| Form                                                                     | Description                                                                | Example                      |
| ------------------------------------------------------------------------ | -------------------------------------------------------------------------- | ---------------------------- |
| [Open string](/structure-and-syntax/values/string/open-strings.md)       | Unquoted; the simplest form; ends at a structural character or whitespace. | `John Doe`                   |
| [Regular string](/structure-and-syntax/values/string/regular-strings.md) | Quoted with single or double quotes; supports escaping.                    | `"John Doe"`                 |
| [Raw string](/structure-and-syntax/values/string/raw-strings.md)         | Prefixed with `r`; quoted; backslashes are literal.                        | `r'C:\path'` or `r"C:\path"` |

All three forms preserve whitespace and Unicode content as written.

## When to use each form

* **Open string** — simple, unstructured text with no leading or trailing whitespace and no structural characters.
* **Regular string** — text that needs structural characters, leading/trailing whitespace, or escape sequences.
* **Raw string** — text with many backslashes or quotes (file paths, regular expressions), where escaping would be cumbersome.

## See Also

* [String Types](/schema-definition-language/data-types/string.md) — schemas for strings
* [Numeric Values](/structure-and-syntax/values/number.md) — the numeric forms
* [Value Representations](/structure-and-syntax/values.md) — all value types


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.internetobject.org/structure-and-syntax/values/string.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
