# How to replace a string/character in topic title?

**URL:** <https://meta.discourse.org/t/how-to-replace-a-string-character-in-topic-title/72922>\
**Category:** Product Support\
**Created:** [27 Ottobre 2017, 10:44am UTC](https://meta.discourse.org/t/how-to-replace-a-string-character-in-topic-title/72922 "2017-10-27T10:44:12Z")\
**Posts on this page:** 1\
**Showing post:** 20

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [5 Agosto 2018, 10:53pm UTC](https://meta.discourse.org/t/how-to-replace-a-string-character-in-topic-title/72922/20 "2018-08-05T22:53:25Z")

</div>

None of this makes sense on many level.

You are searching for all titles with a SPACE and then doing a bunch of substitution on `-`

@zogstrip suggestion was the correct efficient way of doing this.

Anyway I feel this has run it’s course and any more discussion here is just adding confusion to this topic.

@thaidb you need to run `rails c` as outlined a few topics up.

---

_[View the full topic](https://meta.discourse.org/t/how-to-replace-a-string-character-in-topic-title/72922)._
