Bash Message Partial Match

if [[ $string == *"foo"* ]]; then
  echo "It's there!"
fi
Dopey Diplodocus