Simplified copy_str_, append_str_ and insert_str_ to reuse already existing code.