Fixed error when search_string is empty. Now correctly reads the value from layer configuration.