You need to do this in a loop as you may have consumed multiple 'i's.