Fixed string mem problems.