update string functions
add debug_log