Refactor to force string inner buffer copy when getting a string from
Matcher.