Value returns the gematria value of str, and an error if result has overflowed.
Value is calculated using the standard encoding,
assigning the values 1–9, 10–90, 100–400 to the 22 Hebrew letters in order.
Final letters have the value as the non-final. Non Hebrew characters are ignored.