We often don’t have control about the data type we receive, both from the backend and from the user
So it is necessary to remove spaces in string database, so that the text can be used
We can do this easily using #JavaScript, and its trim() method