Use position in FindEnumStringIndex.

This is a shorter and probably slightly more efficient to write the loop.