Tweaked StrLastAfter and StrLastBefore