merge parse_input and parse_input_split into one function - parse_input with split argument