add DeleteTrailingBlank function