import re


def munge_field(arg):
    """
    Take a naming field and remove extra white spaces.
    """
    if arg:
        res = re.sub(r'\s+', r' ', arg).strip()
    else:
        res = ''
    return res