historical text data formatting