# String Filters
String filters transform text values.
## upper
Converts text to uppercase.
```html
```
## lower
Converts text to lowercase.
```html
```
## capitalize
Capitalizes the first letter.
```html
```
## title
Converts to title case.
```html
```
## camel_case
Converts to camelCase.
```html
{{ "hello_world" | camel_case }}
{# Output: helloWorld #}
```
## pascal_case
Converts to PascalCase.
```html
{{ "hello_world" | pascal_case }}
{# Output: HelloWorld #}
```
## snake_case
Converts to snake_case.
```html
```
## kebab_case
Converts to kebab-case.
```html
```
## truncate
Truncates text to a maximum length.
```html
```
## slugify
Creates a URL-safe slug.
```html
```
## pluralize
Returns empty string for 1, "s" for other numbers.
```html
```
## replace
Replaces text.
```html
```
## remove
Removes text.
```html
```
## prepend
Prepends text.
```html
```
## append
Appends text.
```html
```
## strip
Trims whitespace.
```html
```
## nl2br
Converts newlines to `<br>` tags.
```html
{{ "line1\nline2" | nl2br | safe }}
{# Output: line1<br>line2 #}
```
## word_count
Counts words in text.
```html
```
## char_count
Counts characters.
```html
```
## starts_with
Checks if string starts with prefix.
```html
```
## ends_with
Checks if string ends with suffix.
```html
```
## contains
Checks if string contains substring.
```html
```