Cpp Get Substring Between Two Characters Hugging