Improve history string