Get broken lines

created a getBrokenLines function,  it returns a vector os each string
line in the TextBox