# `toUpperCase`

## Description

Converts all alphabetical characters in a string to uppercase.

## Syntax

Like many functions in DataPrime, `toUpperCase` supports [two notations](https://coralogix.com/docs/dataprime/language-reference/functions-reference/index.md), **function** and **method** notation. These interchangeable forms allow flexibility in how you structure expressions.

```dataprime
toUpperCase(value: string): string
```

```dataprime
(value: string).toUpperCase(): string
```

## Arguments

| Name  | Type   | Required | Description                          |
| ----- | ------ | -------- | ------------------------------------ |
| value | string | **true** | The string to transform to uppercase |

## Example

**Normalize UUIDs for comparison**

A direct comparison would fail due to differing cases. Use `toUpperCase` to normalize them:

### Example data

```json
{
    "uuid1": "37367559-35f4-459c-943e-19025765da15",
    "uuid2": "37367559-35F4-459C-943E-19025765DA15"
}
```

### Example query

```dataprime
filter toUpperCase(uuid1) == toUpperCase(uuid2)
```

```dataprime
filter uuid1.toUpperCase() == uuid2.toUpperCase()
```

### Example output

```json
{
    "uuid1": "37367559-35f4-459c-943e-19025765da15",
    "uuid2": "37367559-35F4-459C-943E-19025765DA15"
}
```
