I'm sure there's a very basic reason for my problem and I hope you'll point it out :)
The problem I have is that a string shows up as ending with "..." on the line of creation but when continuing to the next line it turns into "undefined". Here's an example:
var string1 = "sdfsdfsdfsdfsdfsdfsfsfsfsdfsdfsdfsdfsdfsdfsfasdfasfasdflkjasldflasdkjflaksdjflasjdflaksjdflasdkjf";
var string2 = "sdfgsdfglksjdflgkjsdlfgkjlsdfgkjlsdkgjlkajsdlfkjladskjflakjdsflkajsdlfkjasdlfkjalsdkfjlaskdjflkasjdf";
var string3 = "sdfglksfdjlgkjsldfgkjlsdfkjglsdfkjglsdkfjglsdkjglsdkgjlsdfkjglsdkfjglsdkfjglsdkjglsdkfjglsdkfjglskfdjglsdkjfg";
var string = string1.concat(string2,string3); // debug breakpoint at this line shows the string as ending with ...
var length = string.length(); // debug breakpoint here shows "string" as undifiend but length apears to be working fine.
Any other functions I run on this string return an error as the string is undefined.