Update getId method in InputParser

The getId method will now interpret the user’s input and grab the
corresponding task ID and subsequently return it so that the edit
method can edit the correct task.