finishing substring