Fix data trimming for value.