Fixing trimming of text