improved stringcomparison, fixed another unicodeerror