use parseAll and throw an error for unmatched strings