Break long strings into lines
Fixed logic of line splitting to work with more than 2 lines