Made api use empty strings instead of nils