Apparently the problem is:
The value that's been sent by the request is different from the actual record.
It's because the html doesn't use
<pre> tag, which is able to render multiple spaces. Then the user just copyies the rendered value that doesn't have multiple spaces. That's why it can't get the correct result.