Fixing syntax errors from string wrapping