Small logical change for StrExpand

..and tweaked StrClosestPos!