implement @tschaub's suggestions for the LIKE function