Added support for custom stringLength calculator callback function - used to correctly calculate string lengths when using ANSI colorized output