> 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

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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
