Existence of a Substring in a String and Its Reverse