             guard let match = regex.match(string, options: [])
                 else { XCTFail("Could not find match"); return }
             
-            let stringRange = NSRange(Range(match.range))
+            let stringRange = NSRange(match.range)
             
-            #if os(Linux)
-                let matchString = NSString(string: string).substringWithRange(stringRange)
-            #else
-                let matchString = NSString(string: string).substring(with: stringRange)
-            #endif
+            let matchString = NSString(string: string).substring(with: stringRange)
             
             XCTAssert(matchString == "Bird", matchString)
         }

        }
    }
}

        guard let match = regex.match(string, options: [])
            else { XCTFail("Could not find match"); return }
        
        let stringRange = NSRange(match.range)
        
        let matchString = NSString(string: string).substring(with: stringRange)
        
        XCTAssert(matchString == "Welcome")
    }
