Fix search string parsing regex.