implement NaryFunction
add substr(str, begin, end) function.
add `len(str)` function.
add head and tail function.
use LESSER and GREATER to simplify the head and tail function
clean test query.
Merge branch 'master' into shumo_add_string_functions
Merge pull request #167 from uwescience/shumo_add_string_functions

add string functions