strings related programs in c++