I'm reading an XML file and I ask the user to enter the name of the airline you want to search, by leaving the XML in upper case the condition passes and displays the information I want, but when leaving the information in minuscule and minuscule or uppercase, It returns nothing.
public class XMLReader
    {
        public XMLReader()
        {
        }
        //Fin de metdo leerXML.
        public void leerXML()
        {
            Console.WriteLine("Enter the airline you wish to search: ");
            string name;
            name = Console.ReadLine().ToUpper();
            if (!String.IsNullOrEmpty(name))
            {
                XElement info = XElement.Load(
                  @"C:\Users\thoma\Documents\Visual Studio 2019\Backup Files\data.xml");
                var airlines = info.XPathSelectElements("aerolinea");
                foreach (XElement el in airlines)
                {
                    if (!String.IsNullOrEmpty(el.Element("nombre").Value) && 
                      ((string)el.Element("nombre").Value).IndexOf(name) >= 0)
                    {
                        Console.WriteLine((string)el.Element("origen").Value);
                        Console.WriteLine((string)el.Element("destino").Value);
                        Console.WriteLine((string)el.Element("fecha").Value);
                    }
                }
            }
        }
        static void Main(string[] args)
        {
            XMLReader xmlReader = new XMLReader();
            xmlReader.leerXML();
            Console.ReadLine();
        }
    }
Here is the XML
<?xml version="1.0" encoding="iso-8859-1"?>
<aerolineas>
    <aerolinea id="01">
        <nombre>VIVA COLOMBIA</nombre>
        <origen>BOG</origen>
        <destino>MDE</destino>
        <fecha>01/03/2019</fecha>
    </aerolinea>
    <aerolinea id="02">
        <nombre>HK Express</nombre>
        <origen>BOG</origen>
        <destino>CTG</destino>
        <fecha>01/06/2019</fecha>
    </aerolinea>
    <aerolinea id="03">
        <nombre>Volotea</nombre>
        <origen>PEI</origen>
        <destino>BOG</destino>
        <fecha>01/09/2019</fecha>
    </aerolinea>
    <aerolinea id="04">
        <nombre>Vueling</nombre>
        <origen>MDE</origen>
        <destino>BOG</destino>
        <fecha>01/12/2019</fecha>
    </aerolinea>
</aerolineas>
 
     
     
    