Toyota Tacoma pings

My boyfriend’s 98 Tacoma suffers from light spark knock or pinging occasionally. He has tried different gasoline octanes and brands. He is wondering if the truck has a “normal” thermostat and if changing it will help the problem. Ideas?