Improve "isRedirect" function to account for capitalization