Added garbage collection for strings.