fix string equivalency check