handle quotes in functions