convert to single line and quote string