using System;
using System.Collections.Generic;
using System.Text;
class Utils
{
public static string CleanUpString(string s)
{
string[] arr = s.Split('\n');
List a2 = new List();
for (int i = 0; i < arr.Length; ++i)
{
string a = arr[i].Trim(' ', '\t', '\r');
if (0 != a.Length)
a2.Add(a);
}
return string.Join("\n", a2.ToArray());
}
}