Too many string concatenations when building error messages