I created an application in react native and it does online searches via POST. It works fine, the point is that some gadgets include a space at the end of words, eg:
The user types natação
, but the cell phone sends natação_
with a space at the end (I put underline just to make it easier to see).
How do I remove the space from the end before making the query?