import re


def norm_part(s):
    """
    >>> norm_part('BrIck 1x4')
    'Brick 1 x 4'
    >>> norm_part('Brick 1 x 4')
    'Brick 1 x 4'
    >>> norm_part(' Brick 1 x 4')
    'Brick 1 x 4'
    >>> norm_part('Brick 1x2x2')
    'Brick 1 x 2 x 2'
    >>> norm_part('b 1x2x2')
    'Brick 1 x 2 x 2'
    >>> norm_part('t 1x1')
    'Tile 1 x 1'
    >>> norm_part('s 2x1')
    'Slope 2 x 1'
    >>> norm_part('si 2x1')
    'Slope Inverted 2 x 1'
    >>> norm_part('4444pr0003')
    '4444Pr0003'
    """
    s = str(s).strip().title()
    s = re.sub("(\d+) *x *", "\\1 x ", s, flags=re.I)

    first_word = s.split(" ")[0]

    shortcuts = {
        "B": "Brick",
        "P": "Plate",
        "T": "Tile",
        "S": "Slope",
        "Si": "Slope Inverted",
    }

    if first_word in shortcuts.keys():
        s = " ".join([shortcuts[first_word]] + s.split(" ")[1:])

    return s