# 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:** 1

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [27 Ottobre 2017, 10:44am UTC](https://meta.discourse.org/t/how-to-replace-a-string-character-in-topic-title/72922/1 "2017-10-27T10:44:12Z")

</div>

I want to replace all the `-` in the topic **title** with a single space.

this command will do it for all the posts, how can I change it so that only a **topic-title** get affected?

` rake posts:remap["-"," "]`

---

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