Updated code to allow case insensitivity

Updated code to allow case insensitivity for requests