instead of replacing, you can simply take `linkSpec.Match[2]`, this should be the server name