I want to search for any name in a text file. For example, the name is written as Emily in the text file.
If the user types "emily" or "EmiLY" the code should find the name Emily.
I need this code below to be case-insensitive. Right now it searches for Emily but not emily
(search.startsWith(name) && search.endsWith(name))