In several places, String.compareTo was _compared_ with 0 ( via `== 0` or `!= 0`).
Instead of this, we can use String.equals calls. String.equals is faster and shorter.
Instead of this, we can use String.equals calls. String.equals is faster and shorter.