Fixed string output bugs