strutil: Improved reliability of string formatting functions
strutil: Improved debug output Trace function
strutil: Improved reliability of registry functions

Made the output string length and optional parameter.