string str = " CSharp "; string result = str.TrimStart().TrimEnd().ToUpper();Console.WriteLine(result);
Standard input is empty
CSHARP
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!