format string cleanup