detect boundry phrase