Compare Strings using `.equals()` instead of `==`

This was a warning raised by the Inspector in IntelliJ IDEA.

(Plus some parametrised instantiations :))