refactor magic strings in Task

-refactor magic strings in Task
-format Task
-create appropriate constants in Constants