# Postman fails to assert long string in response value

**URL:** <https://community.postman.com/t/postman-fails-to-assert-long-string-in-response-value/16786>\
**Category:** Help Hub\
**Created:** [October 15, 2020, 8:08am UTC](https://community.postman.com/t/postman-fails-to-assert-long-string-in-response-value/16786 "2020-10-15T08:08:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![bpricilla](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/bpricilla/32/6511_2.png) [@bpricilla](https://community.postman.com/u/bpricilla)\
**Post date:** [January 7, 2021, 1:12am UTC](https://community.postman.com/t/postman-fails-to-assert-long-string-in-response-value/16786/6 "2021-01-07T01:12:35Z")

</div>

@andrei_m Nearly same kind of discussion is right here, this might be useful to you.

> [@How to remove whitespace in a returned item](https://community.postman.com/t/how-to-remove-whitespace-in-a-returned-item/18885/10):
>
> @praveendvd I guess it all depends what the structure of the string is - trim() only removes whitespace from the beginning and the end of a string. For example: @postnewbie2020 It looks like you have a mixture of whitespace and different carriage returns or newlines. From the image, you have provided it’s difficult to know what’s going on. Can you provide an example of the HTML page it’s looking at so it will be easier to run locally rather than taking a guess smiley

---

_[View the full topic](https://community.postman.com/t/postman-fails-to-assert-long-string-in-response-value/16786)._
