Added code to deal with mismatch of case