get function return values as string