The yellow arrow points to a leather cord tied similar to a poacher's knot to have an end loop.
The red arrow are ends of an elastic string which passes through a hole (one for each end) in the leather.
I need to tie the elastic string ends in such a way to secure both the leather cord, and on itself so that when the elastic is pulled, it will not stretch. Also it should be hard but not impossible to untie.
If you want to be able to trim off the ends, I suggest a double fisherman's instead (aka the double overhand stopper) with both strands (hold them together while you tie and treat them as a single strand).
With either knot, after you trim, you can melt the ends of the elastic cord. It will "mushroom" a bit, which will also prevent the tips from creeping into the knot and coming loose.