Convert the string to lowercase before processing