<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chunks_str(str, n, separator="\n", fill_blanks_last=True):
 """returns lines with max n characters :Example: 123 456 X """

    return separator.join(chunks(str, n))