String related programs in C#