Shortest Matching Substring