little fix to Cost.toString()