Work with nested task
Instead of using Task&lt;string&gt;.Factory.StartNew you can do Task.Factory.StartNew.
However, instead of using Task.Factory.StartNew you can use Task.Run. It is simpler and supports more advanced scenarios. See here.