Test if the text is correctly trimmed, and can still provide the full text. (cherry picked from commit fc888e5d)