> For the complete documentation index, see [llms.txt](https://racoon-js.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://racoon-js.gitbook.io/en/api/string.md).

# string

string()

## Effect

Get a schema object of type string.

## Parameter

None

## Example

```javascript
const schema = racoon.string();
schema.validate(123); // fail
schema.validate('abc'); // pass
```
