Format text properly