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

Fix local cluster mode RuntimeException