> 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/usdcapitalize.md).

# $capitalize

Update records by capitalizing the first letter of a string in a column. The $capitalize method is used to modify text fields by ensuring the first letter of each value is in uppercase, making it useful for formatting names, titles, or other similar data.

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