> ## Documentation Index
> Fetch the complete documentation index at: https://new.docs.falkordb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# text.upperCamelCase

> Converts a string to UpperCamelCase (PascalCase) format, capitalizing the first letter of every word.

## Description

Converts a string to UpperCamelCase (also known as PascalCase) format by removing non-alphanumeric characters and capitalizing the first letter of each word including the first.

## Syntax

```cypher theme={null}
flex.text.upperCamelCase(string)
```

## Parameters

| Parameter | Type   | Required | Description                             |
| --------- | ------ | -------- | --------------------------------------- |
| `string`  | string | Yes      | The string to convert to UpperCamelCase |

## Returns

**Type:** string

The input string converted to UpperCamelCase format. Returns `null` if input is `null`.

## Examples

### Example 1: Basic Usage

```cypher theme={null}
RETURN flex.text.upperCamelCase('hello world') AS result
```

**Output:**

```text theme={null}
result
----------
HelloWorld
```

### Example 2: Converting Class Names

```cypher theme={null}
RETURN flex.text.upperCamelCase('user_account') AS result
```

**Output:**

```text theme={null}
result
-----------
UserAccount
```

### Example 3: Normalizing Entity Names

```cypher theme={null}
MATCH (e:Entity)
RETURN e.rawName, flex.text.upperCamelCase(e.rawName) AS className
```

## Notes

* Returns `null` for `null` input
* Removes all non-alphanumeric characters
* First character is always uppercase (unlike camelCase)
* Also known as PascalCase
* Useful for class names, type names, and entity naming conventions

## See Also

* [text.camelCase](/udfs/flex/text/camelCase) - Convert to camelCase (first letter lowercase)
* [text.snakeCase](/udfs/flex/text/snakeCase) - Convert to snake\_case format
* [text.capitalize](/udfs/flex/text/capitalize) - Capitalize first character only

## Frequently Asked Questions

<AccordionGroup>
  <Accordion title="How is upperCamelCase different from camelCase?">
    In `upperCamelCase` (PascalCase) the **first** letter is capitalized (e.g., `HelloWorld`), while `camelCase` keeps it lowercase (e.g., `helloWorld`).
  </Accordion>

  <Accordion title="What separators does it recognize?">
    It recognizes spaces, hyphens, underscores, and transitions between lowercase and uppercase characters as word boundaries.
  </Accordion>
</AccordionGroup>
