add string functions like replace, substring, etc., add tests