[string] Finding index of character in Swift String