indexOf(const char ch) function

use: return index of first occurrence of the character ch in string, -1
otherwise.