import re


def remove_excess_padding(text):
    """
    Remove Excess padding like extra
    '\n's around the given text
    """
    text = re.sub('^\\n', '', text)
    text = re.sub('\\n$', '', text)

    return text