def strTruncate(value, length):
    _s = str(value).strip()
    if len(_s) <= length:
        return _s
    return _s[0:length] + "..."
dataset/ETHPy150Open Arelle/Arelle/arelle/PythonUtil.py/strTruncate/original