Add tests for newline handling in String (#125)