Respects user options when searching for index of string