1.change inputCommand to be split to command and details
2.added boundary to delete index