Change String comparators to Boolean comparisons.

Should work now, you were comparing Strings but you could just use the attributes themselves.