public static string googleMe(string command) { List word = new List(); string url = "https://www.google.com/search?q="; foreach (string singleWord in command.Split(' ')) { word.Add(singleWord); } if (word[0].ToLower().Equals("google")) { for (int i = 1; i < word.Count; i++) { url += Uri.EscapeDataString(word[i]) + "+"; } return url; } return ""; }