Added simple evaluation function to parse a string a return a value based on the passed token type