Split line_input in state and line_input