> For the complete documentation index, see [llms.txt](https://docs.elentra.org/ejs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.elentra.org/ejs/1.4/guide/internationalization/escl/functions/ucfirst.md).

# UCFIRST

## Introduction

The **UCFIRST** [function](/ejs/1.4/guide/internationalization/escl/concepts/functions.md) converts the first letter of the given text to uppercase.  It accepts a single parameter for the string to be formatted.

## Example

In this example, `my_formatted_string` calls the **UCFIRST** [function](/ejs/1.4/guide/internationalization/escl/concepts/functions.md), passing in the resource identifier `my_string` as its argument.  Instead of a [string](/ejs/1.4/guide/internationalization/escl/concepts/string-resources.md) resource identifier, you may also pass a [term](/ejs/1.4/guide/internationalization/escl/concepts/terms.md) or [variable](/ejs/1.4/guide/internationalization/escl/concepts/variables.md) identifier.

{% code title="ESCL Input" %}

```javascript
my_string: `hello, world!`,
my_formatted_string: `{ UCFIRST(my_string) }`
```

{% endcode %}

{% code title="ESCL Output" %}

```markup
<!-- my_formatted_string -->
<strong>Hello, world!</strong>
```

{% endcode %}
