Moved string.format into a separate file
Allowed to specify algorithm complexity for all "case"s