fix unterminated string