Fixed the problem that the document text is not trimmed while quetion
text is trimmed.