This function needs more thought: what the function does is reading character by character the input string, from a quote to another quote, building the output string (`r_string`), and returning the remaining part at the end. Actually what you need to do is merely to keep the same idea but using counter to keep your index in the input string. In the end you can create `r_string` from `t_string`, and `r_end_string` is the substring of `p_string`, from the counter + 1 to the end.