removed excessive string copying in StringParent::saveToFile