Going nearly crazy

I expect much much more than "sprintf", like find, lefttrim righttrim, findpos, splitup strings to tokens etc. etc, just a library with a great functionality, a toolbox that offers me everything, and I don't need to have dynamically growing strings as long as I know what I am doing. I know what the input to such functions is, so I exactly know whats coming out