implemented TextFormatter