>> The problem with mine was you cant == a string it has to be a int etc.
Unfortunately, that's wrong. Note that both g4j31a5 and MacGyver acknowledged it later.
You can use == on a string. The problem was the missing quotes. Try your original code but add quotes around bob.