C++: simple string problems