Sophist additional script functions

Integrate $eq2, $ne2, $swapprefix and add $delprefix.