import re


def _filter_camel(val):
    """Return CamelCase
       e.g.: "a#bc_def" would convert to "ABcDef"
    """
    titlecase = val.title()
    return re.sub(pattern=r"[\W^_]", repl="", string=titlecase)