Tested this from the reference: https://developer.apple.com/documentation/swift
var string = String(count: 5, repeatedValue: \"a\") // string is \"aaaaa\"
This works just fine :
var str9 = String(count: 5,repeatedValue: Character("c"))