...
Returns 7, the position of the first space " " in "Thomas Troubridge".
indexOf("Thomas Troubridge", "bridge")
...
indexOf("Space1, Space2 and Space3", "e")
Returns 5, which is the first occurrence of "e". It does not return subsequent occurrences at positions 13 and 24.
...