add convenient funcs for int and string

add convenient funcs for int and string