fix VAL() returning zero for leading whitespaces and LFs