I have a code that asks user to give lines with different amount of words in them, the next line is always given on another row.
I want to split the given text into user inputted lenght in different rows.

Right now I have a piece of code that splits the lines to wanted user inputted length, but since it counts the space (" ") as one "word",some lines start with space. How do i stop that from happening?

```
def chunkstring(string, length):
    return (string[0+i:length+i] for i in range(0, len(string), length))

def main():

    print("Enter text rows. Quit by entering an empty row.")
    msg = read_message()
    lines = (i.strip() for i in msg.splitlines())
    get_line = int(input("Enter the number of characters per line: "))
    for line in lines:
        for chunk in chunkstring(line, get_line):
            print(chunk)
``

```