                             if let data = data,
                                 let code = String(data: data, encoding: NSUTF8StringEncoding) {
                                 
-                                let requestToken = code.replacingOccurrences(of: "code=", with: "")
+                                #if os(Linux)
+                                    let requestToken = code.stringByReplacingOccurrencesOfString("code=", withString: "")
+                                #else
+                                    let requestToken = code.replacingOccurrences(of: "code=", with: "")
+                                #endif
+                                
                                 self.pocketRequestTokens[slackId] = requestToken
                                 let redirecTo = "https://getpocket.com/auth/authorize?request_token=\(requestToken)&redirect_uri=\(redirectURL)"
                                 Log.debug("Pocket request token =  \(requestToken)")

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

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