Text formater for text with defined parameters writen in java