Do some text formatting