title: string' does not contain a definition for and no accessible extension method accepting a first argument of type 'string' could be found
body: <p>I'm having trouble creating a successful LINQ statement for an assignment. I keep getting the same error: 'string' does not contain a definition for and no accessible extension method accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?) </p>
  
  <p>I've edited the LINQ statement a few times, I've looked up some examples as well. Maybe it's just a lack of understanding but I'm continuing to get the same error with the "UppercaseWords" statements I'm writing. After trying most of the things I've gathered looking up the error, I figured the next best thing is to just ask myself. </p>
  
  <pre><code>using System;
  using System.Linq;
  using System.Collections.Generic;
  //using System.Configuration;
  
  namespace Assignment6
  {
      public class Program
      {
          public static void Main(string[] args)
          {
              string UserInput;
              List&lt;string&gt; ListOfWords = new List&lt;string&gt;();
              ListOfWords.Add("");
  
  
              Console.Write("   Enter First Name:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
              Console.Write("   Enter Last Name:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
              Console.Write("   Enter Street:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
              Console.Write("   Enter City:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
              Console.Write("   Enter State:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
              Console.Write("   Enter Zip:       ");
              UserInput = Console.ReadLine();
              ListOfWords.Add(UserInput);
  
  
              var ProcessedOut =
                  from word in ListOfWords
                  let uppercaseString = word.UppercaseWords()
                  select uppercaseString;
  
              foreach (var word in ProcessedOut)
                  Console.Write("{0}", word);
  
              Console.WriteLine();
  
          }
  
  
          //string being passed in is a word or phrase
          public static string UppercaseWords(string value)
  
          {
              //make an array from character in word 
              //takes each letter from the word to create an array element 
              char[] array = value.ToCharArray();
  
              if (array.Length &gt;= 1)
              {
                  if (char.IsLower(array[0]))
                  {
                      array[0] = char.ToUpper(array[0]);
                  }
              }
  
              for (int i = 1; i &lt; array.Length; i++)
              {
                  if (array[i - 1] == ' ')
                  {
                      if (char.IsLower(array[i]))
                      {
                          array[i] = char.ToUpper(array[i]);
                      }
                  }
              }
              return new string(array);
          }
  
  
  
  
      }
  </code></pre>
  
  <p>I'm expected to have each piece of data in the output return with a capital letter at the beginning of every word. </p>
  
  <p>All of the code under "public static string UppercaseWords(string value)" I have to include for the assignment. </p>
  
  <p>Thank you in advance for anyone who can help.</p>