simplify string equality check