bool containEndWith(String word, List<String> list) { for (String char in list) { if (word.endsWith(char)) { return true; } } return false; }