Yep, that's what I expected to see, and if you can't see why there's a huge mistake in your code, I think you need to go back re-read some basic C++ tutorials!
I would like to ask you something then... I have a class that is providing system information (like the path, some ids, screen size...) and I have all the info stored in static fields
The thing is that I do not want anybody to be able to modify this values, but I'm not sure if I should return a String reference or a copy. What do you thing?