I need to remove the nth whitespace from a string.
For example, here I would like to remove the 1st whitespace from
my_string <- "this is a string" so that it is now:
"thisis a string"
But I also need to be able to remove e.g., the second whitespace from the original to instead produce:
"this isa string"
How can I do this?