                     let headers = ["Content-Type": "application/json; charset=UTF8",
                                    "X-Accept": "application/json; charset=UTF8"];
                     #if os(Linux)
-                        let url = command.text.stringByTrimmingCharactersInSet(NSCharacterSet(charactersIn: " "))
+                        let url = command.text.stringByTrimmingCharactersInSet(NSCharacterSet(charactersInString: " "))
                     #else
                         let url = command.text.trimmingCharacters(in: NSCharacterSet(charactersIn: " "))
                     #endif

                    let data = postString.data(using: NSUTF8StringEncoding)
                #endif
                
                if let data = postString.data(using: NSUTF8StringEncoding) {
                    
                    HttpClient.post(resource: authStep2, headers: headers, data: data) { error, status, headers, data in
                        

                            if let data = data,
                                let answer = String(data: data, encoding: NSUTF8StringEncoding) {
                                
                                #if os(Linux)
                                    let splitted = answer.components(separatedBy: "&").map { $0.componentsSeparatedByString("=") }
                                #else
                                    let splitted = answer.components(separatedBy: "&").map { $0.components(separatedBy: "=") }
                                #endif
                                
                                for component in splitted {
                                    if component.count == 2 {
