just use the splitlines() function to split lines