Fix major sonar issue related to rule "squid : S1132"

Refactor code to place string literals on the left-hand side when
checking for equality. This change fixes the following sonar code
smell:

It is preferable to place string literals on the left-hand side of an
equals() or equalsIgnoreCase() method call. This prevents null pointer
exceptions from being raised, as a string  literal can never be null by
definition.

Change-Id: Iba6423e9b28c4b10f6808c7c8c342365b9f75f6b
1 file changed