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!
Now we can take a whole string and pass it through the switch statement.
//Do what you want with the 'car'
//Do what you want with the 'dog'
//Do what you want with the 'human'
Voila! Ok not the best way of doing it but atleast you would have string switching! ;-)
I would like to look into HashMaps to do this, since Enums perform mappings from string to the actual enum element.
Hope this was interresting or helpful to you. The only reason why you'd want to do this instead of a list of if/else if statements is performance (it is also a bit more readable).