# Trouble tagging text in my chat app

**URL:** <https://community.thunkable.com/t/trouble-tagging-text-in-my-chat-app/1674812>\
**Category:** Questions about Thunkable X\
**Created:** [January 17, 2022, 12:57am UTC](https://community.thunkable.com/t/trouble-tagging-text-in-my-chat-app/1674812 "2022-01-17T00:57:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![locilare](https://avatars.discourse-cdn.com/v4/letter/l/7feea3/32.png) [@locilare](https://community.thunkable.com/u/locilare)\
**Post date:** [January 17, 2022, 12:57am UTC](https://community.thunkable.com/t/trouble-tagging-text-in-my-chat-app/1674812/1 "2022-01-17T00:57:46Z")

</div>

I need help tagging text in my chat app.

Whenever someone types a bad word in the chat app, it immediately gets tagged and shown like: ######. I feel like adding this feature because I figure that young kids will be using the app and I want to make it age-friendly,

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 17, 2022, 5:17am UTC](https://community.thunkable.com/t/trouble-tagging-text-in-my-chat-app/1674812/2 "2022-01-17T05:17:11Z")

</div>

Here’s a demo that will do this:

[https://x.thunkable.com/copy/51f1bbcd284b34158f61f04f088a494d](https://x.thunkable.com/copy/51f1bbcd284b34158f61f04f088a494d)  
(See the screen with your username)

It’s not perfect. For example, if a prohibited word (“cat” in the example below) is touching a period or other punctuation, it won’t get replaced. And it doesn’t check for mixed case (e.g. turkey≠Turkey≠TURKEY). It also uses the 5-character string “#####” as the replacement for prohibited words regardless of their length.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/1/3193dc36eb453a8af4274e4f84ac41e9a8deeb15.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/abc51fcb8cb066fcce483f17a0f3711802f29ff5.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [April 17, 2022, 5:18am UTC](https://community.thunkable.com/t/trouble-tagging-text-in-my-chat-app/1674812/3 "2022-04-17T05:18:02Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
