add option for appending delimiter after last sequence