converting quantity.num to string before saving