Adjusted input splitter to allow newlines in string literals.