# Stripping "+1" Prefix from consumer's ANI

**URL:** <https://devforum.zoom.us/t/stripping-1-prefix-from-consumers-ani/143561>\
**Category:** Contact Center\
**Created:** [May 13, 2026, 4:18am UTC](https://devforum.zoom.us/t/stripping-1-prefix-from-consumers-ani/143561 "2026-05-13T04:18:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Az19](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/az19/32/74700_2.png) [@Az19](https://devforum.zoom.us/u/Az19)\
**Post date:** [May 13, 2026, 4:18am UTC](https://devforum.zoom.us/t/stripping-1-prefix-from-consumers-ani/143561/1 "2026-05-13T04:18:23Z")

</div>

Hi everyone,

What is the best way to normalize the incoming caller ID and store it in a variable?

I want to remove/strip the **“+1”** prefix from the ANI and store the resulting 10-digit number in a custom variable called `caller_number`.

I tried to use a **Set Variables** widget with an expression like: `substring(consumer.ani, 2)` but no success..

Any insights or thoughts would be appreciated.

---

<div class="post-metadata">

**Author:** ![justin.steinberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justin.steinberg/32/9988_2.png) [@justin.steinberg](https://devforum.zoom.us/u/justin.steinberg)\
**Post date:** [May 13, 2026, 8:55pm UTC](https://devforum.zoom.us/t/stripping-1-prefix-from-consumers-ani/143561/2 "2026-05-13T20:55:33Z")

</div>

Hi @Az19 you will want to use a script widget where you can write javascript to perform this function.
