Text formatting and file size check