<human>:  Can you show me a Python function to change maximum line length.
<bot>: + '\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.