In all actions of trespass, if any damages are found for the plaintiff upon the trial of the issue or inquiry of damages, he or she shall recover his or her costs.