Release strings at end of String.GetLine and String.Append unit tests

There are also assertions added to test that the initial string length
is the correct length.