Fix searching trough list

Converting list to string is not enough when searching for exact match as word boundries are not sufficient when for an example there are quotes (' or ") and brackets ([ and ]) so stripping the list should do make it possible, hopefully, without breaking code.