working code for conversion between index and string index for task ID