Guard against missing quotations and return correct value