I am having one dynamic page which having title Mr. abhinav k. Sinha Summary for first iteration and then in second iteration it'll Jr.kummaripan. edw parnam Summary

I am giving .*Summary in 'OR' it'll give correct identification but when I am giving .* Summary it'll crash.
Space before Summary must be there in all case so, where I going wrong with .* Summary regular expression.

Please take a look.