Format debugging string output