Fix bug of Task() Constructor

Bug: Task is unable to correctly determine the floating status of a task string
passed to the constructor.
Improve readability of static Strings
Remove redundant sort() call