Add proper protection against running string concatenations for debug purposes when debug tracing is turned off