Best practice for performant string operation?

Tangentially related, have a look also at this thread for a discussion and benchmarks on the subject