Remove unnecessary call to input.index()
Merge pull request #592 from sharwell/rm-unnecessary-call

Remove unnecessary call to input.index()