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

# $titlecase

Update records by converting a string column to title case format. The $titlecase method is used to modify text fields by capitalizing the first letter of each word in a string, while keeping the rest of the letters in lowercase (e.g., “Hello World”). This is useful for formatting titles, headings, or names where title case is preferred.

```typescript
await Member.$update({
    $where: { 
        age: { 
            $eq: 16 
        } 
    },
    $update: {
       $titlecase: {
         username: true
       }
    }
});
```
