I have created a library and a search interface. It will return results only if the first letter is uppercase as all my data starts with upper case letters. Is there a way of searching but removing the case sensitivity. I need it to not alter the data when it returns it.
The only method i can think of using is to change the first letter to uppercase but it seems really messy.
Thanks
UPDATE: Simplified version of what i'm trying to do
data = 'The Works of William Shakespeare'
key = 'The'
if key in data:
print "Match Found"
Match Found
key = 'the'
if key in data:
print "Match Found"
The key wasn't found in the second attempt. Is there a way of automatically changing the case of the data string and the case of the input key?