update string/str_repeat: rewrite implement