Fix task list comments

Could you reuse `trimChars` here? Ideally turn it to a set and test membership.