better equality check for action strings