I have a String like this

```
"ABCD EFGH IJKL MNOP"

```

I get user input to match with each of these substrings as whole and not part.
How do I do this?

This is what I am doing currently

```
printf "\n Enter user input:"

read userinput

INPUT=$userinput

if echo "ABCD EFGH IJKL MNOP" | grep -q "$INPUT"; then
  echo "Matching...";
else

  echo "Invalid entry ";
fi

```

The problem with the above code is it will match a partial substring like `"ABC"`,

`"GH`" etc which I do not want. I just need the user input to compare with whole substrings separated by delimiter.