adds text truncation