# Trouble with REPLACE Function

**URL:** <https://community.make.com/t/trouble-with-replace-function/57574>\
**Category:** Questions\
**Tags:** text-replace\
**Created:** [October 10, 2024, 7:29pm UTC](https://community.make.com/t/trouble-with-replace-function/57574 "2024-10-10T19:29:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scot\_Cockroft](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@Scot\_Cockroft](https://community.make.com/u/Scot_Cockroft)\
**Post date:** [October 10, 2024, 7:29pm UTC](https://community.make.com/t/trouble-with-replace-function/57574/1 "2024-10-10T19:29:04Z")

</div>

Trying to remove any leading +1’s from phone number using REPLACE function. Doesn’t seem to work. See my short Loom explaining:

---

<div class="post-metadata">

**Author:** ![Donald\_Mitchell](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/donald_mitchell/32/8749_2.png) [@Donald\_Mitchell](https://community.make.com/u/Donald_Mitchell)\
**Post date:** [October 10, 2024, 10:56pm UTC](https://community.make.com/t/trouble-with-replace-function/57574/2 "2024-10-10T22:56:27Z")

</div>

Hello @Scot_Cockroft,

Just a friendly reminder that while videos definitely help add context, it’s always preferable to include a written summary for easier accessibility for users who may not have the time or ability to watch.

For Phone Numbers, there’s a dedicated module that can accept a phone number, parse it out then return multiple formats depending on your needs.  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/7/07e74405460ec26d6f72cadb5665b915daa94935.png)

As for your replace() function, you do not need to include quotes unless they appear in the text you’re searching, or unless you actually want to use quotes in your replaced text.  
The problem with the plus sign and numbers is that they get converted to numbers then your replace() fails. You can check this [post](https://community.make.com/t/escaping-a-plus-symbol-before-numbers/53417/3) on a workaround for that.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [October 11, 2024, 7:27am UTC](https://community.make.com/t/trouble-with-replace-function/57574/3 "2024-10-11T07:27:51Z")

</div>

If you need further assistance, please provide the following:

# 1. Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/0/20b53cdf28d223e85fc9654c350eadebd37f5d3c.png)

# 2. Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2ff55ee04419049c127f183db2b3eebfbbbbfc64.png)

# 3. Output Bundles of Modules

Please provide the **output** bundles of the modules by running the scenario (or get from the [scenario History tab](https://www.make.com/en/help/scenarios/scenario-execution-history)), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

### A. Upload as Text File

Save each bundle contents in your text editor as a `bundle.txt` file, and upload it here into this discussion thread.

### B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.  
These are the two ways to format text so that it won’t be modified by the forum:

- **Method 1: Type code block manually**

- **Method 2. Highlight and click the format button in the editor**

Providing the input/output bundles will allow others to _replicate_ what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [January 9, 2025, 8:40am UTC](https://community.make.com/t/trouble-with-replace-function/57574/4 "2025-01-09T08:40:37Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


