After converting my project to swift 3, I get the following Value of type \'String\' has no member \'stringByTrimmingCharactersInSet\' error on the first line w
Value of type \'String\' has no member \'stringByTrimmingCharactersInSet\'
The new syntax is like this:
var cString = hex.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).uppercased()
As a suggestion, you don't need to specify that cString is a String, as this is assumed with the value you are assigning to it.
cString