# Replace function - remove spaces from output

**URL:** <https://community.make.com/t/replace-function-remove-spaces-from-output/66074>\
**Category:** Questions\
**Tags:** text-replace\
**Created:** [January 12, 2025, 9:01am UTC](https://community.make.com/t/replace-function-remove-spaces-from-output/66074 "2025-01-12T09:01:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dilipborad](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/dilipborad/32/53211_2.png) [@dilipborad](https://community.make.com/u/dilipborad)\
**Post date:** [January 12, 2025, 9:30am UTC](https://community.make.com/t/replace-function-remove-spaces-from-output/66074/2 "2025-01-12T09:30:32Z")

</div>

Hello @Tiran_Yasinov,  
Welcome to the community.

Try this `{{replace("test string to replace space with underscore"; space; "_")}}`

Also, check this answer related to this topic.

> [@My text parser replace doesn´t work](https://community.make.com/t/my-text-parser-replace-doesn-t-work/65955/4):
>
> Hello @Carlega, As @Msquare_Automation suggests, if null comes at the start of the given URL (string), then using the substring() function works as you need. But if you want to remove it from anywhere in the string, you can use the replace() function. Try this formula. {{replace("null79623029078/orders/null9d5cd3e19ba175cc0622cf41e206c5eanull"; "null"; emptystring)}} Output :bulb:P.S.: Always search first, Check [Make Academy](https://community.make.com/t/make-academy-course-overview/29699). If this is helpful, [Mark Best as Soluti…](https://community.make.com/t/mastering-the-make-community-mark-best-answers-as-solutions/4685)

I hope this helps.

---

_[View the full topic](https://community.make.com/t/replace-function-remove-spaces-from-output/66074)._
