Karen's Control Flow Lab

Hoping that I could be helped on the Google Shopping one especially. I'm having difficulty with that. I can't decide whether using grep or head is the right way or if I need to go a different route. 
Well done here. What would change if you started at `i = 0` and ended at `i = inputString.length - 1`?