Now that the code only needs to check for `String` consider removing the list and the `in` check and use a straight equality comparison