Changes for StrPosMatch and StrLastPos

Fixing, tweaking.