
var mytext = "Hello"
var counter = 0

for letter in mytext {
   if letter == "l" {
      break
   }
   counter += 1
}
var message = "The string contains \(counter) letters"
// "The string contains 2 letters"
