fix the output string