adding regex flags to replace action, and changing header name comparison to be case insensitive for validation purposes