replaced the string comparision with lodash contains method