The equality operator for strings works like it does for numbers.

If the value on its left is the same as the value on the right, the value returned is true.