I want to convert the following molecule (dimethyl 4,4'-(3-(((benzyloxy)carbonyl)amino)thiophene-2,5-diyl)dibenzoate). you can find the molecule in the attachment. I want to hydrolyze the esters and get carboxylic end groups (I put a circle around the esters). I want to use base catalyzed hydrolysis because the protecting group of amine is sensitive to acids. If I hydrolyze the ester using NaOH and heat, I will probably get the 2nd molecule that you can find in the attachment (with ONa end groups).
My question is how can I convert ester to carboxylic acid with adding an acid.
Thank you in advance