Disable "variable assigned but not used" warnings in StringTest.

The variable is "used" for testing purposes