The thing I miss about Java is that it doesn't have string switch functionality like C#. The only way to get close to achieving this in Java is through enums.
A lot of people wonder how that can be done but when I read on a forum post about it I decided to do it myself.
Firstly you'll need the strings you want to look out for. Create an enum containing them, just know that it can only be 1 word strings, don't even try multiple words!
enum StrList
{
car,
dog,
human
}
Now we can take a whole string and pass it through the switch statement.
switch(StrList.valueOf(incommingStr.toLowerCase()))
{
case car:
//Do what you want with the 'car'
break;
case dog:
//Do what you want with the 'dog'
break;
case human:
//Do what you want with the 'human'
break;
}