# Need help with restrict input with specific words

**URL:** <https://forum.bubble.io/t/need-help-with-restrict-input-with-specific-words/221241>\
**Category:** Database\
**Created:** [August 23, 2022, 2:47pm UTC](https://forum.bubble.io/t/need-help-with-restrict-input-with-specific-words/221241 "2022-08-23T14:47:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam.morgan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sam.morgan/32/123576_2.png) [@sam.morgan](https://forum.bubble.io/u/sam.morgan)\
**Post date:** [August 23, 2022, 8:06pm UTC](https://forum.bubble.io/t/need-help-with-restrict-input-with-specific-words/221241/2 "2022-08-23T20:06:51Z")

</div>

The key here will be turning the input’s value from one text value that contains many words into a list of individual words. You can do this by using the “split by” operator to split the single texts into a list of texts using a “space” character as the divider between words in the list.

 ![Screen Shot 2022-08-23 at 4.06.19 PM](https://us1.discourse-cdn.com/bubble/original/3X/e/f/effbdb0f6ce31be6760254af41ee09abae34f305.png)

From there, once you have a list of words the user typed in, you can compare this list to the list of banned words using the “intersect with” operator. The expression for your comparison would be  
`Multiline Input's value:split by ( ) intersect with do a search for banned words:each item's words:count > 0`

I hope this helps!

---

_[View the full topic](https://forum.bubble.io/t/need-help-with-restrict-input-with-specific-words/221241)._
