Use quantity strings instead of if clause.