Consume the string that was passed

Avoids references to possibly big strings.