TRUNK-3959 - Comparison of strings using != instead of .equals

I've fixed this bug just replacing != for .equals with the correct logic.