fixed trimming of quotes