R package for working with character vectors mismatch