Added trimming of whitespaces in task name