handle single and double quotes