How to get a string between two strings fast