Fix indexOf typo

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>