List<long> sIds = ids.TrimEnd(',').Split(new char[] { ',' }).ToList().ConvertAll(s => long.Parse(s));