convert process output to str before returning