Validate string against dictionary
-
Given a string and a list of words, determine if the string is valid based on the list of words
-
Determine if the given string contains valid words while ignoring extraneous characters
'this is a test'
['this', 'is', 'a', 'test']
Returns true
'this is a test'
['this', 'a', 'test']
Returns false