this would avoid tedious data wrangling on extracted text I think an argument `transform` would work unglue("Foo bAr", "{x} {y}", transform = list(x = toupper, y = tolower))