def wrap(raw, cutoff):
    """Return string. Soft wraps a string of text to a specified width.

    Keyword arguments:
    raw -- input string
    cutoff -- integer maximum width in characters
    """
    working = ''
    outTxt = []
    if len(raw) < cutoff:
        outTxt.append(raw)
    else:
        for i in raw.split():
            if len(working) + len(i) < cutoff:
                working += i + ' '
            else:
                outTxt.append(working.rstrip())
                working = i + ' '
        outTxt.append(working.rstrip())
    results = '\n'.join(outTxt)
    return results