new function to get a string between two strings where left and write are not sensitive

Maybe there is a problem with the copy string size, I really have no
idea how to fix this issue.

Right now it is limited to 100 KB if you have any better idea, just let
me know, and I will fix and recommit again.