Compare strings with equals() not with ==

Strings should be compared with the `equals()` method, not with `==`.