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\'
You can try this as well.
let trimmedString = hex.trimmingCharacters(in: CharacterSet.whitespaces)