Fix for really long search strings.