Create dictionary from text and format string output.