anchor.diff:  			var/amount = 1
   			var/vol_each = min(reagents.total_volume, 50)
   			if(text2num(href_list["many"]))
  -				amount = min(max(round(input(usr, "Amount:", "How many patches?") as num), 1), 10)
  +				amount = min(max(round(input(usr, "Amount:", "How many patches?", amount) as num|null), 0), 10)
  +				if(!amount)
  +					return
   				vol_each = min(reagents.total_volume/amount, 50)
  -			var/name = reject_bad_text(input(usr,"Name:","Name your patch!", "[reagents.get_master_reagent_name()] ([vol_each]u)"))
  +			var/name = stripped_input(usr,"Name:","Name your patch!", "[reagents.get_master_reagent_name()] ([vol_each]u)", MAX_NAME_LEN)
  +			if(!name)
  +				return
   			var/obj/item/weapon/reagent_containers/pill/P
   
   			for(var/i = 0; i < amount; i++)
   				P = new/obj/item/weapon/reagent_containers/pill/patch(src.loc)
  -				if(!name) name = reagents.get_master_reagent_name()
  -				P.name = "[name] patch"
  +				P.name = trim("[name] patch")
   				P.pixel_x = rand(-7, 7) //random position
   				P.pixel_y = rand(-7, 7)
   				reagents.trans_to(P,vol_each)
  
positive.code: 				var/amount = 1
  				var/vol_each = min(reagents.total_volume, 50)
  				if(text2num(href_list["many"]))
  					amount = min(max(round(input(usr, "Amount:", "How many pills?") as num), 1), 10)
  					vol_each = min(reagents.total_volume/amount, 50)
  				var/name = reject_bad_text(input(usr,"Name:","Name your pill!", "[reagents.get_master_reagent_name()] ([vol_each]u)"))
  				var/obj/item/weapon/reagent_containers/pill/P
  
  				for(var/i = 0; i < amount; i++)
  
negative.code: 						P = new/obj/item/weapon/reagent_containers/pill(loaded_pill_bottle)
  					else
  						P = new/obj/item/weapon/reagent_containers/pill(src.loc)
  					P.name = trim("[name] pill")
  					P.pixel_x = rand(-7, 7) //random position
  					P.pixel_y = rand(-7, 7)
  					reagents.trans_to(P,vol_each)
  			else
  				var/name = stripped_input(usr, "Name:", "Name your pack!", reagents.get_master_reagent_name(), MAX_NAME_LEN)
  				if(!name)
  					return
  				var/obj/item/weapon/reagent_containers/food/condiment/pack/P = new/obj/item/weapon/reagent_containers/food/condiment/pack(src.loc)
  
  				P.originalname = name
  				P.name = trim("[name] pack")
  				P.desc = "A small condiment pack. The label says it contains [name]."
  				reagents.trans_to(P,10)
  
  		else if (href_list["createbottle"])
  			if(!condi)
  				var/name = stripped_input(usr, "Name:","Name your bottle!", (reagents.total_volume ? reagents.get_master_reagent_name() : " "), MAX_NAME_LEN)
  				if(!name)
  					return
  				var/obj/item/weapon/reagent_containers/glass/bottle/P = new/obj/item/weapon/reagent_containers/glass/bottle(src.loc)
  				P.name = trim("[name] bottle")
  				P.pixel_x = rand(-7, 7) //random position
  				P.pixel_y = rand(-7, 7)
  				reagents.trans_to(P,30)
  