Support single and double quotes in xblock string field editor

Addresses STUD-1984. @cahrens @andy-armstrong please review.
I'd return the instance directly rather than putting it in a variable first.