Sorry to disturb you again.
Actually your code solved my problem but when search results are so many and pagination is applied, I again find that error.
I have noticed that the value of search field in url is as it is as we wrote in search box but for proper results, the symbols should be URL encoded. I replaced symbol with its URL code manually and I got correct results but for code, I don’t know how to fix it. Can you please help me?? ??