whenever the input for task name which has to be added to a list is EDIT: DBI: DBG: etc, the string manipulation algorithm fails as it uses methods which are dependent on the presence of tokens like EDIT: DBI: DBG:
Therefore, the input should be validated (should not contain the mentioned tokens).
Check code used for presence of other tokens