Support single and double quotes in xblock string field editor

Addresses STUD-1984. @cahrens @andy-armstrong please review.
This method seems unnecessarily confusing. The whole test is of the wrapper.