Handle string quantity