fixed: better ouble comparison
Useless method removed
Strings literals should be placed on the left side when checking for
equality
Code simplification