Divide input into args and code