Add support for single quotes in values
Use charAt for consistency
add test of mixing quotes