Refactoring basic_string_init_copy and
add some auxiliary functions.