Human: change maximun line length. Assistant: 
Here is a Python function to change maximum line length

import re

def change_max_line_length(text, max_line_length):
    """
    Change maximun line length.
    """
    lines = text.split('\n')
    for i, line in enumerate(lines):
        if len(line) > max_line_length:
            lines[i] = line[:max_line_length] + '\n'
    return '\n'.join(lines)

# Enter the string
string = "1,2,3,4,5,6,7,8,9,10"

# Calling the function
print((change_max_line_length(string, 5)))

#Example Output
# 1,2,3

#Remember to inspect code for bugs.