Text formatting library