principle of storing strings

principle of storing strings has changes. It gave me an opportunity to
free memory.