Get a string from the cache, and if no such string has been found, create
a new one with only this content. This solves out of memory problems if
the string is a substring of another, large string. In Java, strings are
shared, which could lead to memory problems. This avoid such problems.
s - the string
a string that is guaranteed not be a substring of a large string