Strings not consistent when using string functions on same string variables
-
So I was testing my strings to remove all white spaces using "strReplace" in this fashion
strd = strReplace( strd, " ", "" )
As you can see, the string variable I sent in is the same one that would accept the result. Using the oh-so-helpful "breakPoint" function circulating around, I examined the string afterwards and saw no white spaces. However, a few lines after, when I would grab sections of the string, my program would have issues. I looked into those sections, and found that they contained white spaces, which shouldn't have been there since they are being grabbed from the string used as the result for "strReplace", which again is the same one used as input.
However, if I examined the string using "breakPoint" before using "strReplace", my program would run fine, and no trace of white spaces were found in the string. Of course if I used different string variables throughout this process, no problems would occur, but I honestly feel that to be bad because I'm working with large strings, and feel duplicating them would not be good for memory.