The classic way, if you know ahead of time what string you're looking for, is a case
statement:
case "$VAR" in*UAT*) : OK;;*) : Oops;;esac
You can use an appropriate command in place of the :
command. This will work with Bourne and Korn shells too, not just with Bash.