import textwrap


def Wrap(x):
    """Wraps the provided text to 80 characters without stripping whitespace"""
    if type(x) is not str:
        x = str(x)


    lines_in = x.split('\n')
    lines_out = []

    for line in lines_in:
        lines_out += textwrap.wrap(line,width=80, replace_whitespace=False)

    return str('\n'.join(lines_out))