Split &str into lines

EDIT: DUPLICATE of