This option has a performance pitfall, cause it's using a for-in to iterate in characters.
let str: String = String(attrStr.characters)
This option has a complexity O(n), in practice is faster than the previous.
let str: String = String(attrStr.characters[...])
source: Swift forum