Refactored "saveString" for clarity, improved docblock, added more comments