Added implementation for "find_substr"