Как запрос префикс строки в Swift

let str = "Hello! Swift"str.prefix(6) // "Hello!"
Lucky Lapwing