>>435The only obvious gaping hole I can think of is that you've basically just created an overcomplicated sprintf().
sprintf()