Switching the WeakRef attribute to using the new checkStringLiteralArgument helper function.