Tested this from the reference: https://developer.apple.com/documentation/swift
var string = String(count: 5, repeatedValue: \"a\") // string is \"aaaaa\"
For the benefit of future searchers: as of Swift 3, use init(repeating:count:).
init(repeating:count:)
let sososo = String(repeating: "so", count: 3)