update task include empty string or nil