Fix unterminated string issue