public IEnumerable<ICommand> ProcessCommands(string commands) { return commands .Split(new[] { '\r', '\n' }) .Select(item => item.Trim()) .Where(item => !string.IsNullOrEmpty(item)) .Select(ProcessCommand); }