Tested this from the reference: https://developer.apple.com/documentation/swift
var string = String(count: 5, repeatedValue: \"a\") // string is \"aaaaa\"
For anyone in swift 3.x its now something like this this will work like a charm.
var string = String(repeating: "a", count: 5)