trimming text content