implemented simple text formatting util