updated logic of grocery list ingredient to remove the blank space if in...

...gredient amount and type are null