import re


def spacify_aa(example):
    """Do the AA space thing and mask rare AAs (as suggested in the docs)"""
    spaced_aa = ' '.join(list(re.sub(r"[UZOB]", "X", example['sequence'])))
    return {'sentence': spaced_aa}