Fixed format bugs.
Fixed string too long problem.