Refactored uppercase pointer calculation in class path.
Avoid allocating memory when the destination path buffer is already large enough.
Initial insertion implementation.
Made insert more robust; now handles lengthed buffers and overlapping ranges.