Variable string, in network password?

Why isn’t this working, I am trying to use a variable as string, but it won’t work. The variables are private, so they aren’t being overwritten.

Case 1 - Both use manually typed in
Result: Works

Client:
Network.Connect(“127.0.0.1”,25000,“PandaStomper”);

Server:
Network.incomingPassword = “PandaStomper”;
Network.InitializeServer (32,25000,false);

Case 2 - Server variabled, client manually typed in
Result: Works

Client:
Network.Connect(“127.0.0.1”,25000,“PandaStomper”);

Server:
var CodeThingie : String = “PandaStomper”;

Network.incomingPassword = CodeThingie ;
Network.InitializeServer (32,25000,false);

Case 3 - Both through variable
Result: Fails

Client:
var CodeThingie : String = “PandaStomper”;
Network.Connect(“127.0.0.1”,25000,CodeThingie);

Server:
var CodeThingie : String = “PandaStomper”;

Network.incomingPassword = CodeThingie ;
Network.InitializeServer (32,25000,false);

Is this actually the code, or are you showing us pseudo code?

It is the actual code, without the function Awake or whatnot, but the lines are taken directly out of them.

I would set a break point for both the InitializationServer and Connect in monodevelop, attach to the unity process and go on with your bad self. Observe the variables and the values for the password(in the third case) and see if something odd is happening to the string variables.