Convert result to string