add substr, replace, split to built-in functions (#887)