fix 'end of input but string quote still open' error