Searches for a given subsequence in a list of strings and transforms the resulting list as customized