SearchString null pointer fix