Section 18. The party prevailing upon such action shall be entitled to costs, except as otherwise provided.