Added function to split the command into arguments