also cleanup trailing whitespace
doesn't support cards with coin and debt cost, but I don't need it that myself.