<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def truncate(text, length=255):
 """ Splits the message into a list of strings of of length `length` Args: text (str):
 The text to be divided length (int, optional):
 The length of the chunks of text. \ Defaults to 255. Returns: list: Text divided into chunks of length `length` """


        lines = []
        i = 0
        while i < len(text) - 1:
            try:
                lines.append(text[i:i+length])
                i += length

            except IndexError as e:
                lines.append(text[i:])
        return lines