Add function for split a line