What is the easiest way to clear an array of strings?
You can try this.
result = result.Where(x => !string.IsNullOrEmpty(x)).ToArray();