def change_exclusion_header_format(header):
    """ Method to modify the exclusion header format.
     ex: content-type to Content-Type"""

    if type(header) is list:
        tmp_list = list()

        for head in header:
            tmp = head.split("-")

            val = str()
            for t in tmp:
                val = val + "-" + t.capitalize()

            tmp_list.append(val.replace("-", "", 1))

        return tmp_list

    else:
        tmp = header.split("-")
        val = str()
        for t in tmp:
            val = val + "-" + t.capitalize()

        return val.replace("-", "", 1)