I\'m looking to make a javascript function that can identify when a string contains a substring with a "catch all" item. Example: