fixed search text splitting and highlight markup