string distance for unknown instructions