You need to use the method
String.IsNullOrEmpty(string parameter)
like:
private static bool AcharOvazio(String s)
{
return String.IsNullOrEmpty(s.Trim());
}
we can also do it directly inline with Linq like:
N1 = ns.Where(x => !String.IsNullOrEmpty(x.Trim()))ToList();