Added simple text format function