Added basic validation of expression strings before attempting to parse and evaluate