# Is Edabit in the String? by Matt tags: strings, validation ## Summary > A string contains the word "edabit" if a subsequence of its characters spell "edabit". > Write a function that accepts a string and returns “YES” if the string contains a subsequence of the word edabit or "NO" if it does not. > Examples > edabitInString(“eddaaabt”) ➞ “NO” > edabitInString(“edwardisabletodoit”) ➞ “YES” > edabitInString(“abecdfghijklmnopqrstuvwxyz”) ➞ ## Instructions A string contains the word "edabit" if a _subsequence_ of its characters spell "edabit". Write a function that accepts a string and returns “YES” if the string contains a subsequence of the word edabit or "NO" if it does not. ### Examples ``` edabitInString(“eddaaabt”) ➞ “NO” edabitInString(“edwardisabletodoit”) ➞ “YES” edabitInString(“abecdfghijklmnopqrstuvwxyz”) ➞ “NO” ``` ### Notes Check the **Resources** tab for more details on subsequence.