If you are uncomfortable with touching code, then you can remove the query strings with this plugin. I discovered that some options that remove URL query sequences worked on several websites, however, maybe perhaps not all.
Here is my web page best free wordpress Database optimization plugin