parse single and double quotation marks correctly