Added string-to-number function and function directory