Internal helper function to get the first index of a character in a string.
The string to look in.
The character to look for.
An optional offset to look from.
The index of the character, or -1.
Internal helper function to get the first index of a character in a string.