Fix if regexp is empty string or null char