Fix bug with text format from string (text attribute were not recognized)