Use 'equals()' method to String comparison instead '=='

Fix local cluster mode RuntimeException
Merge pull request #691 from miofthena/patch-1

Use 'equals()' method to String comparison instead '=='