Take a messy string and clean it up by converting it to title case, removing any superfluous whitespace and optionally removing any punctuation. The use case is to make text style uniform to aid with matching.
Usage
clean_up_free_text(
string,
case_to = c("upper", "lower", "sentence", "title", "none"),
remove_punct = TRUE
)