Truncate and append the ending string only when needed.

I only want the ending string when we are actually truncating.