added toLowerCase before indexing and searching

made case insensitive