find string starts and ends