---
title: New NRQL string functions for better data formatting
source: https://docs.newrelic.com/whats-new/2022/10/whats-new-10-27-nrql-string-functions
---

With the launch of four new NRQL functions, you can now transform string data right within your query.

## Better formatting and easier comparisons

-   `substring()` extracts part of a string
-   `position()` finds the location of a substring within a string
-   `lower()` changes a string to lowercase
-   `upper()` changes a string to uppercase

## Combine functions to query what you need

By combining these new string functions, you can extract and format the data you want right within your NRQL query. This can be especially powerful when combined with our recently announced [NRQL variables feature](https://one.newrelic.com/whats-new?state=54b6bc30-6f70-3507-6966-4b8073aa66af) for even faster insights:

![NRQL with string functions](https://docs.newrelic.com/images/NRQL-string-functions.webp "NRQL with string functions")

## Next steps

Review the docs for [substring()](https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/#func-substring), [position()](https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/#func-position), [upper()](https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/#func-upper), and [lower()](https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/#func-lower) and start working with strings in your queries!
