missing substring method