# String

Updated for version 3.38

## string

An existing class for dealing with strings.

BeardLib doesn't add much to here.

Remember, this class uses periods not colons. So you'd call it like this: string.func.

### Functions

#### Get

| Function            | Return Type | Description                                                                                                                                                  |
| ------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| pretty2(String str) | String      | Converts `str` into a "pretty" string. Basically, it separates capitalized words with a space; so a string such as: "MyCoolString" would be "My Cool String" |
| key(String str)     | String      | Returns the Idstring key of `str` (Basically Idstring(str):key())                                                                                            |

## Anonymous functions

### Functions

| Function             | Description                                                                                                                           |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| prnt(...)            | Prints all arguments (separated by a tab). This function doesn't require to do tostring(). Though it won't print nulls.               |
| prntf(String s, ...) | Like `prnt` but prints using string.format; so you can do things like `prntf("My name is %s and I need a %s", "Dallas", "Medic bag")` |


---

# Agent Instructions: 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://luffyyy.gitbook.io/beardlib/utilities/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.
