Refactor/optimize string interpolation

Refactor string interpolation, and optimize it (see https://github.com/adrianhurt/playframework/commit/c11ef8c8f66165d69403d1e88c67546ae89d2925#commitcomment-5179232 ).