• Thanks for the reply Koen.

    Can you let me know how to get 2nd and 3rd string?

    ABCDE|ABCDF|BCDEF

    result 2nd string

    ----------------

    ABCDF

    result 3rd string

    ----------------

    BCDEF

    Thanks for your help.